From f38d548becc0aa4a92fd691af837e42c572ff67c Mon Sep 17 00:00:00 2001 From: Michal Ziobro Date: Wed, 11 Jan 2023 13:04:06 +0100 Subject: [PATCH] feat(latestblock): test new feature --- README.md | 4 ++-- internal/latestblock/latestblock.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9d2e843..7decb1e 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Hello, world! Get latest block of Volta network: ``` % curl localhost:8000/block -21118165 +Latest block is: 21133370 ``` ## Docker @@ -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 ``` \ No newline at end of file diff --git a/internal/latestblock/latestblock.go b/internal/latestblock/latestblock.go index af7d57d..cdbb5e9 100644 --- a/internal/latestblock/latestblock.go +++ b/internal/latestblock/latestblock.go @@ -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) }