From c5e8cb25caa39ed018ede5270e1566e8f7448396 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 30 Oct 2017 11:57:24 -0500 Subject: simplify things (#7735) --- jobs/jobs_watcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jobs') diff --git a/jobs/jobs_watcher.go b/jobs/jobs_watcher.go index f9a958fe3..b36a99051 100644 --- a/jobs/jobs_watcher.go +++ b/jobs/jobs_watcher.go @@ -40,7 +40,7 @@ func (watcher *Watcher) Start() { // Delay for some random number of milliseconds before starting to ensure that multiple // instances of the jobserver don't poll at a time too close to each other. rand.Seed(time.Now().UTC().UnixNano()) - _ = <-time.After(time.Duration(rand.Intn(watcher.pollingInterval)) * time.Millisecond) + <-time.After(time.Duration(rand.Intn(watcher.pollingInterval)) * time.Millisecond) defer func() { l4g.Debug("Watcher Finished") -- cgit v1.2.3-1-g7c22