etcd: standby should not be in a tight loop

This commit is contained in:
Xiang Li 2014-07-20 11:43:39 -07:00 committed by Yicheng Qin
parent 060de128a7
commit 468c345e74

View File

@ -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 {