Ver Fonte

etcd: standby should not be in a tight loop

Xiang Li há 11 anos atrás
pai
commit
468c345e74
1 ficheiros alterados com 1 adições e 1 exclusões
  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 {