From dfb88fc33d3f2ff34432dbc3dd453bee751d93b9 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 11 Mar 2018 18:01:35 +0000 Subject: [PATCH] spelling: evaluation --- nomad/config.go | 2 +- nomad/eval_broker.go | 4 ++-- nomad/fsm.go | 2 +- nomad/plan_queue.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nomad/config.go b/nomad/config.go index f7c89ef6c..32a59aee9 100644 --- a/nomad/config.go +++ b/nomad/config.go @@ -195,7 +195,7 @@ type Config struct { // an evaluation that has been Nacked more than once. This delay is // compounding after the first Nack. This value should be significantly // longer than the initial delay as the purpose it severs is to apply - // back-pressure as evaluatiions are being Nacked either due to scheduler + // back-pressure as evaluations are being Nacked either due to scheduler // failures or because they are hitting their Nack timeout, both of which // are signs of high server resource usage. EvalNackSubsequentReenqueueDelay time.Duration diff --git a/nomad/eval_broker.go b/nomad/eval_broker.go index 3ad5f389f..8ed99d494 100644 --- a/nomad/eval_broker.go +++ b/nomad/eval_broker.go @@ -105,7 +105,7 @@ type PendingEvaluations []*structs.Evaluation // with the timeout used for messages that are not acknowledged before we // assume a Nack and attempt to redeliver as well as the deliveryLimit // which prevents a failing eval from being endlessly delivered. The -// initialNackDelay is the delay before making a Nacked evalution available +// initialNackDelay is the delay before making a Nacked evaluation available // again for the first Nack and subsequentNackDelay is the compounding delay // after the first Nack. func NewEvalBroker(timeout, initialNackDelay, subsequentNackDelay time.Duration, deliveryLimit int) (*EvalBroker, error) { @@ -755,7 +755,7 @@ func (p PendingEvaluations) Swap(i, j int) { p[i], p[j] = p[j], p[i] } -// Push is used to add a new evalution to the slice +// Push is used to add a new evaluation to the slice func (p *PendingEvaluations) Push(e interface{}) { *p = append(*p, e.(*structs.Evaluation)) } diff --git a/nomad/fsm.go b/nomad/fsm.go index 9beaf15a3..bf0a01bd6 100644 --- a/nomad/fsm.go +++ b/nomad/fsm.go @@ -108,7 +108,7 @@ type FSMConfig struct { // added/removed from Periodic *PeriodicDispatch - // BlockedEvals is the blocked eval tracker that blocked evaulations should + // BlockedEvals is the blocked eval tracker that blocked evaluations should // be added to. Blocked *BlockedEvals diff --git a/nomad/plan_queue.go b/nomad/plan_queue.go index d679b9371..4a7c93e0b 100644 --- a/nomad/plan_queue.go +++ b/nomad/plan_queue.go @@ -234,7 +234,7 @@ func (p PendingPlans) Swap(i, j int) { p[i], p[j] = p[j], p[i] } -// Push is used to add a new evalution to the slice +// Push is used to add a new evaluation to the slice func (p *PendingPlans) Push(e interface{}) { *p = append(*p, e.(*pendingPlan)) }