Skip to content

Commit

Permalink
Actually proper pid decode
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenGround0 committed Jul 1, 2022
1 parent 27604ac commit 0ace229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/net.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 0ace229

Please sign in to comment.