From 452f6a77be1728936ed3e02651e27f545b466dff Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Tue, 27 Mar 2018 14:12:30 -0700 Subject: [PATCH] drain: improve comments --- nomad/drainer/draining_node.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nomad/drainer/draining_node.go b/nomad/drainer/draining_node.go index 28780e7d5..b9f7c1148 100644 --- a/nomad/drainer/draining_node.go +++ b/nomad/drainer/draining_node.go @@ -81,7 +81,6 @@ func (n *drainingNode) IsDone() (bool, error) { return true, nil } -// TODO test that we return the right thing given the strategies // RemainingAllocs returns the set of allocations remaining on a node that // still need to be drained. func (n *drainingNode) RemainingAllocs() ([]*structs.Allocation, error) { @@ -120,7 +119,7 @@ func (n *drainingNode) RemainingAllocs() ([]*structs.Allocation, error) { return drain, nil } -// RunningServices returns the set of jobs on the node +// RunningServices returns the set of service jobs on the node. func (n *drainingNode) RunningServices() ([]structs.NamespacedID, error) { n.l.RLock() defer n.l.RUnlock()