mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-30 03:35:34 +00:00
fix lint failures with 1.31 (#5489)
This commit is contained in:
@@ -22,7 +22,7 @@ func ExampleHTTP_simple() {
|
||||
rpcAddr := rpctest.GetConfig().RPC.ListenAddress
|
||||
c, err := rpchttp.New(rpcAddr, "/websocket")
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
log.Fatal(err) //nolint:gocritic
|
||||
}
|
||||
|
||||
// Create a transaction
|
||||
@@ -69,7 +69,6 @@ func ExampleHTTP_batching() {
|
||||
// Start a tendermint node (and kvstore) in the background to test against
|
||||
app := kvstore.NewApplication()
|
||||
node := rpctest.StartTendermint(app, rpctest.SuppressStdout, rpctest.RecreateConfig)
|
||||
defer rpctest.StopTendermint(node)
|
||||
|
||||
// Create our RPC client
|
||||
rpcAddr := rpctest.GetConfig().RPC.ListenAddress
|
||||
@@ -78,6 +77,8 @@ func ExampleHTTP_batching() {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
defer rpctest.StopTendermint(node)
|
||||
|
||||
// Create our two transactions
|
||||
k1 := []byte("firstName")
|
||||
v1 := []byte("satoshi")
|
||||
@@ -97,7 +98,7 @@ func ExampleHTTP_batching() {
|
||||
// Broadcast the transaction and wait for it to commit (rather use
|
||||
// c.BroadcastTxSync though in production).
|
||||
if _, err := batch.BroadcastTxCommit(context.Background(), tx); err != nil {
|
||||
log.Fatal(err)
|
||||
log.Fatal(err) //nolint:gocritic
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user