Skip to content

Commit

Permalink
feat(latestblock): test new feature
Browse files Browse the repository at this point in the history
  • Loading branch information
michalziobro committed Jan 11, 2023
1 parent 5ac59f3 commit f38d548
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Hello, world!
Get latest block of Volta network:
```
% curl localhost:8000/block
21118165
Latest block is: 21133370
```

## Docker
Expand Down Expand Up @@ -76,6 +76,6 @@ kubectl --namespace default port-forward $POD_NAME $CONTAINER_PORT:$CONTAINER_PO

```
% curl localhost:8000/block
21118770
Latest block is: 21133370
helm un sample-app
```
2 changes: 1 addition & 1 deletion internal/latestblock/latestblock.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ func (ws WrapperStruct) GetBlockHandler(w http.ResponseWriter, req *http.Request
panic(err)
}

io.WriteString(w, block)
io.WriteString(w, "Latest block is: " + block)
}

0 comments on commit f38d548

Please sign in to comment.