stop using go-libp2p deprecated peer.ID.Pretty

Signed-off-by: Icarus9913 <icaruswu66@qq.com>
This commit is contained in:
Icarus9913
2023-09-12 13:13:34 +08:00
parent f06d67c5a2
commit 2a8ea957fa
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")