Skip to content

Commit

Permalink
Fix: precommit_batch method used the wrong cfg.PreCommitBatchWait
Browse files Browse the repository at this point in the history
  • Loading branch information
sunday527 committed Jul 2, 2021
1 parent 20c8250 commit 71e1577
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 71e1577

Please sign in to comment.