mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-02 01:30:30 +00:00
refactor: use inline StringSet constructor
This commit is contained in:
@@ -199,7 +199,7 @@ func (r *Reporter) Tag(rpt report.Report) (report.Report, error) {
|
||||
|
||||
rpt.Container.Nodes[id] = n.WithParents(report.MakeSets().Add(
|
||||
report.Pod,
|
||||
report.MakeStringSet().Add(report.MakePodNodeID(uid)),
|
||||
report.MakeStringSet(report.MakePodNodeID(uid)),
|
||||
))
|
||||
}
|
||||
return rpt, nil
|
||||
|
||||
@@ -365,7 +365,7 @@ func MapContainerImage2Name(n report.Node, _ report.Networks) report.Nodes {
|
||||
n.ID = report.MakeContainerImageNodeID(imageNameWithoutVersion)
|
||||
|
||||
if imageID, ok := report.ParseContainerImageNodeID(n.ID); ok {
|
||||
n.Sets = n.Sets.Add(docker.ImageID, report.MakeStringSet().Add(imageID))
|
||||
n.Sets = n.Sets.Add(docker.ImageID, report.MakeStringSet(imageID))
|
||||
}
|
||||
|
||||
return report.Nodes{n.ID: n}
|
||||
|
||||
Reference in New Issue
Block a user