mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-03 22:43:09 +00:00
chore: do not mount relay more than once (#1650)
This commit is contained in:
parent
97f3b7be4e
commit
1088c5f063
@ -413,6 +413,10 @@ proc mountRelay*(node: WakuNode,
|
||||
topics: seq[string] = @[],
|
||||
triggerSelf = true,
|
||||
peerExchangeHandler = none(RoutingRecordsHandler)) {.async, gcsafe.} =
|
||||
if not node.wakuRelay.isNil():
|
||||
error "wakuRelay already mounted, skipping"
|
||||
return
|
||||
|
||||
## The default relay topics is the union of all configured topics plus default PubsubTopic(s)
|
||||
info "mounting relay protocol"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user