Skip to content

Commit

Permalink
use BasicNodeSummary for rendering links in connection table
Browse files Browse the repository at this point in the history
instead of the full NodeSummary
  • Loading branch information
rade committed Dec 26, 2017
1 parent 3c9e7ce commit 9674878
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions render/detailed/connections.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,8 @@ func internetAddr(node report.Node, ep report.Node) (string, bool) {
func (c *connectionCounters) rows(r report.Report, ns report.Nodes, includeLocal bool) []Connection {
output := []Connection{}
for row, count := range c.counts {
// Use MakeNodeSummary to render the id and label of this node
// TODO(paulbellamy): Would be cleaner if we hade just a
// MakeNodeID(ns[row.remoteNodeID]). As we don't need the whole summary.
summary, _ := MakeNodeSummary(report.RenderContext{Report: r}, ns[row.remoteNodeID])
// Use MakeBasicNodeSummary to render the id and label of this node
summary, _ := MakeBasicNodeSummary(r, ns[row.remoteNodeID])
connection := Connection{
ID: fmt.Sprintf("%s-%s-%s-%s", row.remoteNodeID, row.remoteAddr, row.localAddr, row.port),
NodeID: summary.ID,
Expand Down

0 comments on commit 9674878

Please sign in to comment.