nomad: extra comment

This commit is contained in:
Armon Dadgar
2016-02-20 13:41:49 -08:00
parent caa11f6aeb
commit b7842db1a2

View File

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