Browse Source

etcd: standby should not be in a tight loop

Xiang Li 11 years ago
parent
commit
468c345e74
1 changed files with 1 additions and 1 deletions
  1. 1 1
      etcd/standby.go

+ 1 - 1
etcd/standby.go

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