mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcd: standby should not be in a tight loop
This commit is contained in:
parent
060de128a7
commit
468c345e74
@ -72,7 +72,7 @@ func newStandby(id int64, pubAddr string, raftPubAddr string, client *v2client,
|
||||
}
|
||||
|
||||
func (s *standby) run() int64 {
|
||||
var syncDuration time.Duration
|
||||
syncDuration := time.Millisecond * 100
|
||||
nodes := s.peerHub.getSeeds()
|
||||
for {
|
||||
select {
|
||||
|
Loading…
x
Reference in New Issue
Block a user