Actually proper pid decode

This commit is contained in:
zenground0 2022-07-01 13:14:56 -05:00
parent 27604ac5de
commit 0ace22961c

View File

@ -276,9 +276,9 @@ var NetDisconnect = &cli.Command{
ids := cctx.Args().Slice()
for _, id := range ids {
pid, err := peer.IDFromString(id)
pid, err := peer.Decode(id)
if err != nil {
fmt.Printf("failure")
fmt.Println("failure")
return err
}
fmt.Printf("disconnect %s: ", pid.Pretty())