leave some time for finalCommit

pull/3453/head
Rongjian Lan 4 years ago
parent 8aa57bbca5
commit a71d8f48f7
  1. 2
      consensus/leader.go

@ -305,7 +305,7 @@ func (consensus *Consensus) onCommit(msg *msg_pb.Message) {
go func(viewID uint64) {
waitTime := 1000 * time.Millisecond
maxWaitTime := time.Until(consensus.NextBlockDue)
maxWaitTime := time.Until(consensus.NextBlockDue) - 100*time.Millisecond
if maxWaitTime > waitTime {
waitTime = maxWaitTime
}

Loading…
Cancel
Save