mirror of https://github.com/status-im/consul.git
Tweaks select style.
This commit is contained in:
parent
e07298594e
commit
12ad26e0fc
|
@ -281,9 +281,10 @@ func (s *Server) runACLReplication() {
|
|||
// Give each server's replicator a random initial phase for good
|
||||
// measure.
|
||||
select {
|
||||
case <-time.After(lib.RandomStagger(s.config.ACLReplicationInterval)):
|
||||
case <-s.shutdownCh:
|
||||
return
|
||||
|
||||
case <-time.After(lib.RandomStagger(s.config.ACLReplicationInterval)):
|
||||
}
|
||||
|
||||
// We are fairly conservative with the lastRemoteIndex so that after a
|
||||
|
|
Loading…
Reference in New Issue