This commit is contained in:
Tom Wilkie
2015-09-01 12:59:26 +00:00
parent 7cce17945f
commit e867d168e1
+1 -1
View File
@@ -201,7 +201,7 @@ func (n NodeMetadata) WithAdjacency(a IDList) NodeMetadata {
// WithAdjacent returns a fresh copy of n, with 'a' added to Adjacency
func (n NodeMetadata) WithAdjacent(a string) NodeMetadata {
result := n.Copy()
n.Adjacency = n.Adjacency.Add(a)
result.Adjacency = result.Adjacency.Add(a)
return result
}