From 65a5d650c068fc0f1c761af32dc4ac3ce34e5dce Mon Sep 17 00:00:00 2001 From: Renan DelValle Date: Sat, 12 Jan 2019 14:06:32 -0800 Subject: [PATCH] goimports style fix. --- monitors.go | 12 ++++++------ realis.go | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/monitors.go b/monitors.go index b47a218..946341d 100644 --- a/monitors.go +++ b/monitors.go @@ -38,13 +38,13 @@ func (m *Monitor) JobUpdate(updateKey aurora.JobUpdateKey, interval int, timeout status, err := m.JobUpdateStatus(updateKey, map[aurora.JobUpdateStatus]bool{ aurora.JobUpdateStatus_ROLLED_FORWARD: true, - aurora.JobUpdateStatus_ROLLED_BACK: true, - aurora.JobUpdateStatus_ABORTED: true, - aurora.JobUpdateStatus_ERROR: true, - aurora.JobUpdateStatus_FAILED: true, + aurora.JobUpdateStatus_ROLLED_BACK: true, + aurora.JobUpdateStatus_ABORTED: true, + aurora.JobUpdateStatus_ERROR: true, + aurora.JobUpdateStatus_FAILED: true, }, - time.Duration(interval) * time.Second, - time.Duration(timeout) * time.Second) + time.Duration(interval)*time.Second, + time.Duration(timeout)*time.Second) if err != nil { return false, err diff --git a/realis.go b/realis.go index 3598715..9427ecf 100644 --- a/realis.go +++ b/realis.go @@ -789,7 +789,7 @@ func (r *realisClient) AbortJobUpdate(updateKey aurora.JobUpdateKey, message str // Make this call synchronous by blocking until it job has successfully transitioned to aborted m := Monitor{Client: r} - _, err := m.JobUpdateStatus(updateKey, map[aurora.JobUpdateStatus]bool{aurora.JobUpdateStatus_ABORTED:true},time.Second * 5, time.Minute) + _, err := m.JobUpdateStatus(updateKey, map[aurora.JobUpdateStatus]bool{aurora.JobUpdateStatus_ABORTED: true}, time.Second*5, time.Minute) if err != nil { return resp, err