diff options
author | Chris <ccbrown112@gmail.com> | 2017-08-09 15:35:49 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-08-09 13:35:49 -0700 |
commit | ff0811e4a4f5189293b54a1d195eaec30b3e530f (patch) | |
tree | 70cd535da2ed1c262e8bfc8ed37096a513bdcfab /jobs | |
parent | 9309ad9d7a4684440234989f658c66bae3c1052f (diff) | |
download | chat-ff0811e4a4f5189293b54a1d195eaec30b3e530f.tar.gz chat-ff0811e4a4f5189293b54a1d195eaec30b3e530f.tar.bz2 chat-ff0811e4a4f5189293b54a1d195eaec30b3e530f.zip |
lint all the things (#7154)
* lint all the things
* remove extra echo
Diffstat (limited to 'jobs')
-rw-r--r-- | jobs/jobs_watcher.go | 4 | ||||
-rw-r--r-- | jobs/testscheduler.go | 2 |
2 files changed, 3 insertions, 3 deletions
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 }() |