Fix: precommit_batch method used the wrong cfg.PreCommitBatchWait
This commit is contained in:
parent
dbdbb6f0dd
commit
57d70e58f3
4
extern/storage-sealing/precommit_batch.go
vendored
4
extern/storage-sealing/precommit_batch.go
vendored
@ -88,7 +88,7 @@ func (b *PreCommitBatcher) run() {
|
|||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
timer := time.NewTimer(b.batchWait(cfg.CommitBatchWait, cfg.CommitBatchSlack))
|
timer := time.NewTimer(b.batchWait(cfg.PreCommitBatchWait, cfg.PreCommitBatchSlack))
|
||||||
for {
|
for {
|
||||||
if forceRes != nil {
|
if forceRes != nil {
|
||||||
forceRes <- lastRes
|
forceRes <- lastRes
|
||||||
@ -122,7 +122,7 @@ func (b *PreCommitBatcher) run() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
timer.Reset(b.batchWait(cfg.CommitBatchWait, cfg.CommitBatchSlack))
|
timer.Reset(b.batchWait(cfg.PreCommitBatchWait, cfg.PreCommitBatchSlack))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user