mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Add ThresholdMonitorTimeout.
This commit is contained in:
parent
88e0263d08
commit
b47042634a
@ -22,6 +22,8 @@ import (
|
||||
|
||||
const retryInterval = 10
|
||||
|
||||
const ThresholdMonitorTimeout = 5 * time.Second
|
||||
|
||||
type PeerServer struct {
|
||||
raftServer raft.Server
|
||||
server *Server
|
||||
@ -512,6 +514,6 @@ func (s *PeerServer) monitorTimeoutThreshold(closeChan chan bool) {
|
||||
return
|
||||
}
|
||||
|
||||
time.Sleep(5 * time.Second)
|
||||
time.Sleep(ThresholdMonitorTimeout)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user