mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
Stop mutating nodes in ColorConnected filter
This commit is contained in:
@@ -44,12 +44,13 @@ func ColorConnected(r Renderer) Renderer {
|
||||
}
|
||||
}
|
||||
|
||||
output := input.Copy()
|
||||
for id := range connected {
|
||||
input[id] = input[id].WithNode(report.MakeNodeWith(map[string]string{
|
||||
output[id] = output[id].WithNode(report.MakeNodeWith(map[string]string{
|
||||
IsConnected: "true",
|
||||
}))
|
||||
}
|
||||
return input
|
||||
return output
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user