Refactoring variable names and variable types to saner versions.

This commit is contained in:
Renan DelValle 2018-11-07 18:44:01 -08:00
parent c65a47f6e2
commit 1146736c2b
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9
3 changed files with 40 additions and 38 deletions

View file

@ -26,7 +26,7 @@ import (
const (
UpdateFailed = "update failed"
RolledBack = "update rolled back"
Timeout = "timeout"
Timedout = "timeout"
)
type Monitor struct {
@ -82,7 +82,7 @@ func (m *Monitor) JobUpdate(updateKey aurora.JobUpdateKey, interval int, timeout
}
}
case <-timer.C:
return false, errors.New(Timeout)
return false, errors.New(Timedout)
}
}
}
@ -117,7 +117,7 @@ func (m *Monitor) ScheduleStatus(key *aurora.JobKey, instanceCount int32, desire
case <-timer.C:
// If the timer runs out, return a timeout error to user
return false, errors.New(Timeout)
return false, errors.New(Timedout)
}
}
}
@ -177,7 +177,7 @@ func (m *Monitor) HostMaintenance(hosts []string, modes []aurora.MaintenanceMode
hostResult[host] = false
}
return hostResult, errors.New(Timeout)
return hostResult, errors.New(Timedout)
}
}
}