mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
removing duplication checking, which is no longer needed due to connection aggregation
This commit is contained in:
@@ -2,7 +2,6 @@ package render
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
"sort"
|
||||
"strconv"
|
||||
|
||||
@@ -80,15 +79,8 @@ func MakeDetailedNode(r report.Report, n RenderableNode) DetailedNode {
|
||||
// in the UI, so we skip the intermediate representations, but we could
|
||||
// add them later.
|
||||
connections := []Row{}
|
||||
outer:
|
||||
for _, id := range n.Origins {
|
||||
if table, ok := OriginTable(r, id); ok {
|
||||
// TODO there's a bug that yields duplicate tables. Quick fix.
|
||||
for _, existing := range tables {
|
||||
if reflect.DeepEqual(existing, table) {
|
||||
continue outer
|
||||
}
|
||||
}
|
||||
tables = append(tables, table)
|
||||
} else if nmd, ok := r.Endpoint.NodeMetadatas[id]; ok {
|
||||
connections = append(connections, connectionDetailsRows(r.Endpoint, id, nmd)...)
|
||||
|
||||
Reference in New Issue
Block a user