shorten leader waiting time

pull/3440/head
Rongjian Lan 4 years ago committed by Leo Chen
parent bae5be68da
commit 67e2985a82
  1. 2
      consensus/leader.go

@ -310,7 +310,7 @@ func (consensus *Consensus) onCommit(msg *msg_pb.Message) {
consensus.getLogger().Info().Msg("[OnCommit] Starting Grace Period")
go func(viewID uint64) {
time.Sleep(2500 * time.Millisecond)
time.Sleep(1000 * time.Millisecond)
logger.Info().Msg("[OnCommit] Commit Grace Period Ended")
consensus.commitFinishChan <- viewID
}(viewID)

Loading…
Cancel
Save