agent: simplify a select block

This commit is contained in:
Armon Dadgar 2014-02-19 12:39:03 -08:00
parent 7123c6315b
commit 4f3adcfdda
1 changed files with 0 additions and 2 deletions

View File

@ -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
}