From 86f562be3a2570e39c375ea594bb69adf8126203 Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Fri, 16 Mar 2018 16:32:59 -0700 Subject: [PATCH] Remove unnecessary conversions --- command/agent/consul/version_checker.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command/agent/consul/version_checker.go b/command/agent/consul/version_checker.go index 864adfb88..324a19a12 100644 --- a/command/agent/consul/version_checker.go +++ b/command/agent/consul/version_checker.go @@ -32,7 +32,7 @@ func checkConsulTLSSkipVerify(ctx context.Context, logger *log.Logger, client Ag return } - backoff := (1 << (2 * uint64(i))) * baseline + backoff := (1 << (2 * i)) * baseline if backoff > limit { backoff = limit } else { @@ -42,7 +42,7 @@ func checkConsulTLSSkipVerify(ctx context.Context, logger *log.Logger, client Ag select { case <-ctx.Done(): return - case <-time.After(time.Duration(backoff)): + case <-time.After(backoff): } } }