Skip to content

Commit

Permalink
Update pkg/discoverer/k8s/service/discover.go
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Signed-off-by: Kosuke Morimoto <[email protected]>
  • Loading branch information
kmrmt and coderabbitai[bot] authored Nov 6, 2024
1 parent c6d7982 commit 08f0003
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/discoverer/k8s/service/discover.go
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,8 @@ func (d *discoverer) GetNodes(
}, nil
}
nodes = &payload.Info_Nodes{
Nodes: make([]*payload.Info_Node, len(nbn)),
Nodes: make([]*payload.Info_Node, 0, len(nbn)),
}
}
for name, n := range nbn {
req.Node = name
Expand Down

0 comments on commit 08f0003

Please sign in to comment.