agent: simplify a select block

pull/19/head
Armon Dadgar 11 years ago
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…
Cancel
Save