Skip to content

Commit

Permalink
Merge pull request #6658 from sunday527/master
Browse files Browse the repository at this point in the history
Fix: precommit_batch method used the wrong cfg.CommitBatchWait
  • Loading branch information
magik6k authored Jul 2, 2021
2 parents 60ecbde + 71e1577 commit 35c0e3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extern/storage-sealing/precommit_batch.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (b *PreCommitBatcher) run() {
panic(err)
}

timer := time.NewTimer(b.batchWait(cfg.CommitBatchWait, cfg.CommitBatchSlack))
timer := time.NewTimer(b.batchWait(cfg.PreCommitBatchWait, cfg.PreCommitBatchSlack))
for {
if forceRes != nil {
forceRes <- lastRes
Expand Down Expand Up @@ -122,7 +122,7 @@ func (b *PreCommitBatcher) run() {
}
}

timer.Reset(b.batchWait(cfg.CommitBatchWait, cfg.CommitBatchSlack))
timer.Reset(b.batchWait(cfg.PreCommitBatchWait, cfg.PreCommitBatchSlack))
}
}

Expand Down

0 comments on commit 35c0e3c

Please sign in to comment.