mirror of https://github.com/vacp2p/nim-libp2p.git
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…
Reference in New Issue