mirror of https://github.com/status-im/consul.git
agent: simplify a select block
This commit is contained in:
parent
7123c6315b
commit
4f3adcfdda
|
@ -220,9 +220,7 @@ SYNC:
|
|||
l.logger.Printf("[ERR] agent: failed to sync remote state: %v", err)
|
||||
select {
|
||||
case <-l.consulCh:
|
||||
continue
|
||||
case <-time.After(aeScale(syncRetryIntv, len(l.iface.LANMembers()))):
|
||||
continue
|
||||
case <-shutdownCh:
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue