Browse Source

state: pass connected context (#7410)

pull/7326/head
Sam Kleinman 3 years ago
committed by GitHub
parent
commit
867d406c6c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      internal/state/execution.go

+ 2
- 2
internal/state/execution.go View File

@ -264,7 +264,7 @@ func (blockExec *BlockExecutor) Commit(
}
// Commit block, get hash back
res, err := blockExec.proxyApp.CommitSync(context.Background())
res, err := blockExec.proxyApp.CommitSync(ctx)
if err != nil {
blockExec.logger.Error("client error during proxyAppConn.CommitSync", "err", err)
return nil, 0, err
@ -609,7 +609,7 @@ func ExecCommitBlock(
}
// Commit block, get hash back
res, err := appConnConsensus.CommitSync(context.Background())
res, err := appConnConsensus.CommitSync(ctx)
if err != nil {
logger.Error("client error during proxyAppConn.CommitSync", "err", res)
return nil, err


Loading…
Cancel
Save