mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-02 17:50:39 +00:00
refactor: use propagateLatest
instead of the equivalent long-hand code.
This commit is contained in:
@@ -53,9 +53,7 @@ func (r processWithContainerNameRenderer) Render(rpt report.Report) Nodes {
|
||||
if !ok {
|
||||
continue
|
||||
}
|
||||
if containerName, timestamp, ok := container.Latest.LookupEntry(docker.ContainerName); ok {
|
||||
p.Latest = p.Latest.Set(docker.ContainerName, timestamp, containerName)
|
||||
}
|
||||
propagateLatest(docker.ContainerName, container, p)
|
||||
outputs[id] = p
|
||||
}
|
||||
return Nodes{Nodes: outputs, Filtered: processes.Filtered}
|
||||
|
||||
Reference in New Issue
Block a user