From 33559e0868475ed2f30adc92968ea4b6120e8b84 Mon Sep 17 00:00:00 2001 From: Marko Date: Mon, 24 Aug 2020 14:58:32 +0200 Subject: [PATCH] docs: fix go tutorials (#5267) ## Description fix go tutorials to work with master Closes: #XXX --- docs/tutorials/go-built-in.md | 16 ++++++++++++++++ docs/tutorials/go.md | 16 ++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/docs/tutorials/go-built-in.md b/docs/tutorials/go-built-in.md index a753488c7..3ca19329c 100644 --- a/docs/tutorials/go-built-in.md +++ b/docs/tutorials/go-built-in.md @@ -140,6 +140,22 @@ func (KVStoreApplication) BeginBlock(req abcitypes.RequestBeginBlock) abcitypes. func (KVStoreApplication) EndBlock(req abcitypes.RequestEndBlock) abcitypes.ResponseEndBlock { return abcitypes.ResponseEndBlock{} } + +func (KVStoreApplication) ListSnapshots(abcitypes.RequestListSnapshots) abcitypes.ResponseListSnapshots { + return abcitypes.ResponseListSnapshots{} +} + +func (KVStoreApplication) OfferSnapshot(abcitypes.RequestOfferSnapshot) abcitypes.ResponseOfferSnapshot { + return abcitypes.ResponseOfferSnapshot{} +} + +func (KVStoreApplication) LoadSnapshotChunk(abcitypes.RequestLoadSnapshotChunk) abcitypes.ResponseLoadSnapshotChunk { + return abcitypes.ResponseLoadSnapshotChunk{} +} + +func (KVStoreApplication) ApplySnapshotChunk(abcitypes.RequestApplySnapshotChunk) abcitypes.ResponseApplySnapshotChunk { + return abcitypes.ResponseApplySnapshotChunk{} +} ``` Now I will go through each method explaining when it's called and adding diff --git a/docs/tutorials/go.md b/docs/tutorials/go.md index 8b96cef2a..70be81f07 100644 --- a/docs/tutorials/go.md +++ b/docs/tutorials/go.md @@ -143,6 +143,22 @@ func (KVStoreApplication) BeginBlock(req abcitypes.RequestBeginBlock) abcitypes. func (KVStoreApplication) EndBlock(req abcitypes.RequestEndBlock) abcitypes.ResponseEndBlock { return abcitypes.ResponseEndBlock{} } + +func (KVStoreApplication) ListSnapshots(abcitypes.RequestListSnapshots) abcitypes.ResponseListSnapshots { + return abcitypes.ResponseListSnapshots{} +} + +func (KVStoreApplication) OfferSnapshot(abcitypes.RequestOfferSnapshot) abcitypes.ResponseOfferSnapshot { + return abcitypes.ResponseOfferSnapshot{} +} + +func (KVStoreApplication) LoadSnapshotChunk(abcitypes.RequestLoadSnapshotChunk) abcitypes.ResponseLoadSnapshotChunk { + return abcitypes.ResponseLoadSnapshotChunk{} +} + +func (KVStoreApplication) ApplySnapshotChunk(abcitypes.RequestApplySnapshotChunk) abcitypes.ResponseApplySnapshotChunk { + return abcitypes.ResponseApplySnapshotChunk{} +} ``` Now I will go through each method explaining when it's called and adding