From 4f3adcfdda126602234aef86b668ac6b9b9e7208 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Wed, 19 Feb 2014 12:39:03 -0800 Subject: [PATCH] agent: simplify a select block --- command/agent/local.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/command/agent/local.go b/command/agent/local.go index cef668966c..671b6e1eac 100644 --- a/command/agent/local.go +++ b/command/agent/local.go @@ -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 }