From 670a0bfc56e8290c48f1971244fda358796b64f8 Mon Sep 17 00:00:00 2001 From: Tanguy Date: Wed, 13 Sep 2023 14:56:13 +0200 Subject: [PATCH] typo --- libp2p/protocols/pubsub/gossipsub.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libp2p/protocols/pubsub/gossipsub.nim b/libp2p/protocols/pubsub/gossipsub.nim index d164cb247c..6b8d7ff3c6 100644 --- a/libp2p/protocols/pubsub/gossipsub.nim +++ b/libp2p/protocols/pubsub/gossipsub.nim @@ -614,7 +614,7 @@ method publish*(g: GossipSub, proc maintainDirectPeer(g: GossipSub, id: PeerId, addrs: seq[MultiAddress]) {.async.} = if id notin g.peers: trace "Attempting to dial a direct peer", peer = id - if g.switch.connected(id): + if g.switch.isConnected(id): info "We are connected to a direct peer, but GossipSub isn't setup with him!", id return try: