Skip to content

Commit

Permalink
op-node: remove deprecated Pretty() call
Browse files Browse the repository at this point in the history
Use `String()` over `Pretty()`

- libp2p/go-libp2p#2563
- libp2p/go-libp2p-pubsub#547
  • Loading branch information
tynes committed Nov 6, 2023
1 parent 7bc7ce3 commit 9b93101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion op-node/p2p/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (n *NodeP2P) init(resourcesCtx context.Context, rollupCfg *rollup.Config, l
if err != nil {
return fmt.Errorf("failed to join blocks gossip topic: %w", err)
}
log.Info("started p2p host", "addrs", n.host.Addrs(), "peerID", n.host.ID().Pretty())
log.Info("started p2p host", "addrs", n.host.Addrs(), "peerID", n.host.ID().String())

tcpPort, err := FindActiveTCPPort(n.host)
if err != nil {
Expand Down

0 comments on commit 9b93101

Please sign in to comment.