Skip to content

Commit

Permalink
Use String instead of Pretty, because the latter one is deprecated in…
Browse files Browse the repository at this point in the history
… go-libp2p-pubsub lib
  • Loading branch information
Stefan-Ethernal committed Jan 17, 2024
1 parent 60a861c commit 935b3d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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
2 changes: 1 addition & 1 deletion tests/tests
Submodule tests updated from 7497b1 to 428f21

0 comments on commit 935b3d0

Please sign in to comment.