lint: couple more fixes

This commit is contained in:
Zach Ramsay
2017-09-22 09:45:50 -04:00
parent a3ac825490
commit fe426de5d4
2 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ func setOption(client abcicli.Client, key, value string) {
func commit(client abcicli.Client, hashExp []byte) { func commit(client abcicli.Client, hashExp []byte) {
res := client.CommitSync() res := client.CommitSync()
_, data, log := res.Code, res.Data, res.Log _, data, _ := res.Code, res.Data, res.Log
if res.IsErr() { if res.IsErr() {
panic(fmt.Sprintf("committing err %v\n", res)) panic(fmt.Sprintf("committing err %v\n", res))
} }

View File

@ -1,4 +1,4 @@
package types package types // nolint: goimports
import ( import (
context "golang.org/x/net/context" context "golang.org/x/net/context"
@ -18,7 +18,7 @@ type Application interface {
// Consensus Connection // Consensus Connection
InitChain(RequestInitChain) // Initialize blockchain with validators and other info from TendermintCore InitChain(RequestInitChain) // Initialize blockchain with validators and other info from TendermintCore
BeginBlock(RequestBeginBlock) // Signals the beginning of a block BeginBlock(RequestBeginBlock) // Signals the beginning of a block
DeliverTx(tx []byte) Result // Deliver a tx for full processing DeliverTx(tx []byte) Result // Deliver a tx for full processing
EndBlock(height uint64) ResponseEndBlock // Signals the end of a block, returns changes to the validator set EndBlock(height uint64) ResponseEndBlock // Signals the end of a block, returns changes to the validator set
Commit() Result // Commit the state and return the application Merkle root hash Commit() Result // Commit the state and return the application Merkle root hash
} }