nits: scheduler/node/node.go

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
This commit is contained in:
Ahmet Alp Balkan 2015-06-15 14:19:56 -07:00
parent ce10683831
commit d9f5ba1dd4
1 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ import (
"github.com/docker/swarm/cluster" "github.com/docker/swarm/cluster"
) )
// Node is an abstract type used by the scheduler // Node is an abstract type used by the scheduler.
type Node struct { type Node struct {
ID string ID string
IP string IP string
@ -25,7 +25,7 @@ type Node struct {
IsHealthy bool IsHealthy bool
} }
// NewNode creates a node from an engine // NewNode creates a node from an engine.
func NewNode(e *cluster.Engine) *Node { func NewNode(e *cluster.Engine) *Node {
return &Node{ return &Node{
ID: e.ID, ID: e.ID,
@ -67,7 +67,7 @@ func (n *Node) Container(IDOrName string) *cluster.Container {
return nil return nil
} }
// AddContainer inject a container into the internal state. // AddContainer injects a container into the internal state.
func (n *Node) AddContainer(container *cluster.Container) error { func (n *Node) AddContainer(container *cluster.Container) error {
if container.Config != nil { if container.Config != nil {
memory := container.Config.Memory memory := container.Config.Memory