From ff0811e4a4f5189293b54a1d195eaec30b3e530f Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 9 Aug 2017 15:35:49 -0500 Subject: lint all the things (#7154) * lint all the things * remove extra echo --- jobs/jobs_watcher.go | 4 ++-- jobs/testscheduler.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'jobs') diff --git a/jobs/jobs_watcher.go b/jobs/jobs_watcher.go index 5892e3b1c..9ba68e85e 100644 --- a/jobs/jobs_watcher.go +++ b/jobs/jobs_watcher.go @@ -38,7 +38,7 @@ func (watcher *Watcher) Start() { rand.Seed(time.Now().UTC().UnixNano()) _ = <-time.After(time.Duration(rand.Intn(WATCHER_POLLING_INTERVAL)) * time.Millisecond) - defer func(){ + defer func() { l4g.Debug("Watcher Finished") watcher.stopped <- true }() @@ -69,7 +69,7 @@ func (watcher *Watcher) PollAndNotify() { for _, js := range jobStatuses { j := model.Job{ Type: js.Type, - Id: js.Id, + Id: js.Id, } if js.Type == model.JOB_TYPE_DATA_RETENTION { diff --git a/jobs/testscheduler.go b/jobs/testscheduler.go index 31b5d144c..d7345f67f 100644 --- a/jobs/testscheduler.go +++ b/jobs/testscheduler.go @@ -28,7 +28,7 @@ func MakeTestScheduler(name string, jobType string) *TestScheduler { func (scheduler *TestScheduler) Run() { l4g.Debug("Scheduler %v: Started", scheduler.name) - defer func(){ + defer func() { l4g.Debug("Scheduler %v: Finished", scheduler.name) scheduler.stopped <- true }() -- cgit v1.2.3-1-g7c22