From a5f05fa902eb539494a8fa51d15986aec6dec505 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Fri, 6 Jun 2014 14:38:01 -0700 Subject: [PATCH] agent: Ensure we don't retry too often --- command/agent/local.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/agent/local.go b/command/agent/local.go index e0b6a12d05..db03930f86 100644 --- a/command/agent/local.go +++ b/command/agent/local.go @@ -230,7 +230,7 @@ SYNC: case <-shutdownCh: return } - case <-time.After(randomStagger(aeScale(syncRetryIntv, len(l.iface.LANMembers())))): + case <-time.After(syncRetryIntv + randomStagger(aeScale(syncRetryIntv, len(l.iface.LANMembers())))): case <-shutdownCh: return }