mirror of
https://github.com/kemko/nomad.git
synced 2026-01-09 11:55:42 +03:00
nomad: extra comment
This commit is contained in:
@@ -257,6 +257,9 @@ func evaluatePlan(pool *EvaluatePool, snap *state.StateSnapshot, plan *structs.P
|
||||
outstanding++
|
||||
case r := <-resp:
|
||||
outstanding--
|
||||
|
||||
// Handle a result that allows us to cancel evaluation,
|
||||
// which may save time processing additional entries.
|
||||
if cancel := handleResult(r.nodeID, r.fit, r.err); cancel {
|
||||
didCancel = true
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user