From b1fd173c13e3b61c0994797d19f1926be4f7d8cd Mon Sep 17 00:00:00 2001 From: Preetha Appan Date: Wed, 14 Mar 2018 16:12:22 -0500 Subject: [PATCH] Fix linting warning --- nomad/eval_broker.go | 2 +- scheduler/reconcile.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/nomad/eval_broker.go b/nomad/eval_broker.go index b6dbedcc4c48..0217e966dc43 100644 --- a/nomad/eval_broker.go +++ b/nomad/eval_broker.go @@ -134,7 +134,7 @@ func NewEvalBroker(timeout, initialNackDelay, subsequentNackDelay time.Duration, stats: new(BrokerStats), evals: make(map[string]int), jobEvals: make(map[structs.NamespacedID]string), - blocked: make(map[structs.NamespacedID]PendingEvaluations), + blocked: make(map[structs.NamespacedID]PendingEvaluations), ready: make(map[string]PendingEvaluations), unack: make(map[string]*unackEval), waiting: make(map[string]chan struct{}), diff --git a/scheduler/reconcile.go b/scheduler/reconcile.go index 89999c614ee7..3bfd1a89e14d 100644 --- a/scheduler/reconcile.go +++ b/scheduler/reconcile.go @@ -352,7 +352,6 @@ func (a *allocReconciler) computeGroup(group string, all allocSet) bool { rescheduleLaterAllocs = a.handleDelayedReschedules(rescheduleLater, all, tg.Name) } - // Create a structure for choosing names. Seed with the taken names which is // the union of untainted and migrating nodes (includes canaries) nameIndex := newAllocNameIndex(a.jobID, group, tg.Count, untainted.union(migrate, rescheduleNow))