packages/hyprspace: print node names in status
This commit is contained in:
parent
48454cc245
commit
a4d5782a7f
1 changed files with 3 additions and 2 deletions
|
@ -32,10 +32,11 @@ func (hsr *HyprspaceRPC) Status(args *Args, reply *StatusReply) error {
|
|||
if hsr.host.Network().Connectedness(p.ID) == network.Connected {
|
||||
netPeersCurrent = netPeersCurrent + 1
|
||||
for _, c := range hsr.host.Network().ConnsToPeer(p.ID) {
|
||||
netPeerAddrsCurrent = append(netPeerAddrsCurrent, fmt.Sprintf("%s/p2p/%s (%s)",
|
||||
netPeerAddrsCurrent = append(netPeerAddrsCurrent, fmt.Sprintf("@%s (%s) %s/p2p/%s",
|
||||
p.Name,
|
||||
hsr.host.Peerstore().LatencyEWMA(p.ID).String(),
|
||||
c.RemoteMultiaddr().String(),
|
||||
p.ID.String(),
|
||||
hsr.host.Peerstore().LatencyEWMA(p.ID).String(),
|
||||
))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue