spelling: evaluation

This commit is contained in:
Josh Soref
2018-03-11 18:01:35 +00:00
parent 6ec8d9fd16
commit dfb88fc33d
4 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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))
}

View File

@@ -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

View File

@@ -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))
}