Omit obtaining the lock when adding Nodes in newNodeTree

This commit is contained in:
Ted Yu 2019-07-02 23:16:06 +08:00 committed by Ted Yu
parent a5e3d74691
commit acdc4d2001

View File

@ -63,7 +63,7 @@ func newNodeTree(nodes []*v1.Node) *NodeTree {
tree: make(map[string]*nodeArray),
}
for _, n := range nodes {
nt.AddNode(n)
nt.addNode(n)
}
return nt
}