forked from TrueCloudLab/frostfs-node
[#1689] Remove deprecated NodeInfo.IterateNetworkEndpoints()
Change-Id: Ic78f18aed11fab34ee3147ceea657296b89fe60c Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
56d09a9957
commit
bf06c4fb4b
11 changed files with 83 additions and 82 deletions
|
@ -27,9 +27,9 @@ func PrettyPrintNodeInfo(cmd *cobra.Command, node netmap.NodeInfo,
|
|||
|
||||
cmd.Printf("%sNode %d: %s %s ", indent, index+1, hex.EncodeToString(node.PublicKey()), strState)
|
||||
|
||||
netmap.IterateNetworkEndpoints(node, func(endpoint string) {
|
||||
for endpoint := range node.NetworkEndpoints() {
|
||||
cmd.Printf("%s ", endpoint)
|
||||
})
|
||||
}
|
||||
cmd.Println()
|
||||
|
||||
if !short {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue