mirror of
https://github.com/vacp2p/nim-libp2p-experimental.git
synced 2025-01-11 19:04:26 +00:00
warn on failed pubsub subscribe
This commit is contained in:
parent
eb49d4b218
commit
52c270dcf9
@ -321,7 +321,7 @@ proc subscribeToPeer(s: Switch, peerInfo: PeerInfo) {.async, gcsafe.} =
|
||||
let conn = await s.dial(peerInfo, s.pubSub.get().codec)
|
||||
await s.pubSub.get().subscribeToPeer(conn)
|
||||
except CatchableError as exc:
|
||||
trace "unable to initiate pubsub", exc = exc.msg
|
||||
warn "unable to initiate pubsub", exc = exc.msg
|
||||
s.dialedPubSubPeers.excl(peerInfo.id)
|
||||
|
||||
proc subscribe*(s: Switch, topic: string, handler: TopicHandler): Future[void] {.gcsafe.} =
|
||||
|
Loading…
x
Reference in New Issue
Block a user