Tweaks select style.

This commit is contained in:
James Phillips 2016-08-09 11:33:42 -07:00
parent e07298594e
commit 12ad26e0fc
No known key found for this signature in database
GPG Key ID: 77183E682AC5FC11
1 changed files with 2 additions and 1 deletions

View File

@ -281,9 +281,10 @@ func (s *Server) runACLReplication() {
// Give each server's replicator a random initial phase for good // Give each server's replicator a random initial phase for good
// measure. // measure.
select { select {
case <-time.After(lib.RandomStagger(s.config.ACLReplicationInterval)):
case <-s.shutdownCh: case <-s.shutdownCh:
return return
case <-time.After(lib.RandomStagger(s.config.ACLReplicationInterval)):
} }
// We are fairly conservative with the lastRemoteIndex so that after a // We are fairly conservative with the lastRemoteIndex so that after a