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
+2 -2
View File
@@ -282,7 +282,7 @@ var NetDisconnect = &cli.Command{
fmt.Println("failure")
return err
}
fmt.Printf("disconnect %s: ", pid.Pretty())
fmt.Printf("disconnect %s: ", pid)
err = api.NetDisconnect(ctx, pid)
if err != nil {
fmt.Println("failure")
@@ -312,7 +312,7 @@ var NetConnect = &cli.Command{
}
for _, pi := range pis {
fmt.Printf("connect %s: ", pi.ID.Pretty())
fmt.Printf("connect %s: ", pi.ID)
err := api.NetConnect(ctx, pi)
if err != nil {
fmt.Println("failure")