Merge pull request #11263 from Icarus9913/libp2p/remove-deprecated-method

fix: deps: stop using go-libp2p deprecated peer.ID.Pretty
This commit is contained in:
Łukasz Magiera
2023-09-22 13:59:18 +02:00
committed by GitHub
6 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ func (a *NetAPI) NetStat(ctx context.Context, scope string) (result api.NetStat,
if len(stat.Peers) > 0 {
result.Peers = make(map[string]network.ScopeStat, len(stat.Peers))
for p, stat := range stat.Peers {
result.Peers[p.Pretty()] = stat
result.Peers[p.String()] = stat
}
}