Skip to content

Commit

Permalink
Use String instead of Pretty, because the latter one is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan-Ethernal committed Jan 17, 2024
1 parent 5a22782 commit 9504357
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion network/identity/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func (i *IdentityService) Hello(_ context.Context, req *proto.Status) (*proto.St
func (i *IdentityService) constructStatus(peerID peer.ID) *proto.Status {
return &proto.Status{
Metadata: map[string]string{
PeerID: i.hostID.Pretty(),
PeerID: i.hostID.String(),
},
Chain: i.chainID,
TemporaryDial: i.baseServer.IsTemporaryDial(peerID),
Expand Down
2 changes: 1 addition & 1 deletion network/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ func TestSelfConnection_WithBootNodes(t *testing.T) {

{
name: "Should return an non empty bootnodes list",
bootNodes: []string{"/ip4/127.0.0.1/tcp/10001/p2p/" + peerID.Pretty(), testMultiAddr},
bootNodes: []string{"/ip4/127.0.0.1/tcp/10001/p2p/" + peerID.String(), testMultiAddr},
expectedList: []*peer.AddrInfo{peerAddressInfo},
},
}
Expand Down

0 comments on commit 9504357

Please sign in to comment.