From 3e41def0eb6137381d8d55c24baa09ac226c2ee1 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Sat, 27 Nov 2021 09:27:16 -0800 Subject: [PATCH] docs: go tutorial fixed for 0.35.0 version (#7329) (#7330) (#7331) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit a36dd49eae474e2b07b8c982e2a2ee28c152f126) Co-authored-by: Piotr Pędziwiatr <84311757+ppedziwiatr@users.noreply.github.com> --- docs/tutorials/go.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorials/go.md b/docs/tutorials/go.md index 9461f2cea..6614cffe5 100644 --- a/docs/tutorials/go.md +++ b/docs/tutorials/go.md @@ -367,7 +367,7 @@ func main() { flag.Parse() - logger := log.NewTMLogger(log.NewSyncWriter(os.Stdout)) + logger := log.MustNewDefaultLogger(log.LogFormatPlain, log.LogLevelInfo, false) server := abciserver.NewSocketServer(socketAddr, app) server.SetLogger(logger) @@ -438,7 +438,7 @@ This should create a `go.mod` file. The current tutorial only works with the master branch of Tendermint, so let's make sure we're using the latest version: ```sh -go get github.com/tendermint/tendermint@master +go get github.com/tendermint/tendermint@97a3e44e0724f2017079ce24d36433f03124c09e ``` This will populate the `go.mod` with a release number followed by a hash for Tendermint.