mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 01:31:17 +00:00
gofmt the go
This commit is contained in:
@@ -142,18 +142,18 @@ func (c *connectionCounters) rows(r report.Report, ns report.Nodes, includeLocal
|
||||
if includeLocal {
|
||||
connection.Metadata = append(connection.Metadata,
|
||||
report.MetadataRow{
|
||||
ID: remoteKey,
|
||||
Value: row.localAddr,
|
||||
ID: remoteKey,
|
||||
Value: row.localAddr,
|
||||
})
|
||||
}
|
||||
connection.Metadata = append(connection.Metadata,
|
||||
report.MetadataRow{
|
||||
ID: portKey,
|
||||
Value: row.port,
|
||||
ID: portKey,
|
||||
Value: row.port,
|
||||
},
|
||||
report.MetadataRow{
|
||||
ID: countKey,
|
||||
Value: strconv.Itoa(count),
|
||||
ID: countKey,
|
||||
Value: strconv.Itoa(count),
|
||||
},
|
||||
)
|
||||
output = append(output, connection)
|
||||
|
||||
@@ -159,12 +159,12 @@ func TestMakeDetailedHostNode(t *testing.T) {
|
||||
Linkable: true,
|
||||
Metadata: []report.MetadataRow{
|
||||
{
|
||||
ID: "port",
|
||||
Value: "80",
|
||||
ID: "port",
|
||||
Value: "80",
|
||||
},
|
||||
{
|
||||
ID: "count",
|
||||
Value: "2",
|
||||
ID: "count",
|
||||
Value: "2",
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -265,12 +265,12 @@ func TestMakeDetailedContainerNode(t *testing.T) {
|
||||
Linkable: true,
|
||||
Metadata: []report.MetadataRow{
|
||||
{
|
||||
ID: "port",
|
||||
Value: "80",
|
||||
ID: "port",
|
||||
Value: "80",
|
||||
},
|
||||
{
|
||||
ID: "count",
|
||||
Value: "2",
|
||||
ID: "count",
|
||||
Value: "2",
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -281,12 +281,12 @@ func TestMakeDetailedContainerNode(t *testing.T) {
|
||||
Linkable: true,
|
||||
Metadata: []report.MetadataRow{
|
||||
{
|
||||
ID: "port",
|
||||
Value: "80",
|
||||
ID: "port",
|
||||
Value: "80",
|
||||
},
|
||||
{
|
||||
ID: "count",
|
||||
Value: "1",
|
||||
ID: "count",
|
||||
Value: "1",
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -381,12 +381,12 @@ func TestMakeDetailedPodNode(t *testing.T) {
|
||||
Linkable: true,
|
||||
Metadata: []report.MetadataRow{
|
||||
{
|
||||
ID: "port",
|
||||
Value: "80",
|
||||
ID: "port",
|
||||
Value: "80",
|
||||
},
|
||||
{
|
||||
ID: "count",
|
||||
Value: "2",
|
||||
ID: "count",
|
||||
Value: "2",
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -397,12 +397,12 @@ func TestMakeDetailedPodNode(t *testing.T) {
|
||||
Linkable: true,
|
||||
Metadata: []report.MetadataRow{
|
||||
{
|
||||
ID: "port",
|
||||
Value: "80",
|
||||
ID: "port",
|
||||
Value: "80",
|
||||
},
|
||||
{
|
||||
ID: "count",
|
||||
Value: "1",
|
||||
ID: "count",
|
||||
Value: "1",
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user