fix: call runPeerExchangeDiscv5Loop (#1297)

This commit is contained in:
kaiserd 2022-10-25 12:15:10 +02:00 committed by GitHub
parent 8f5363ea8f
commit c99b0a4778
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -363,6 +363,8 @@ proc setupProtocols(node: WakuNode, conf: WakuNodeConf, mStorage: MessageStore):
except:
return err("failed to mount waku peer-exchange protocol: " & getCurrentExceptionMsg())
asyncSpawn runPeerExchangeDiscv5Loop(node.wakuPeerExchange)
if conf.peerExchangeNode != "":
try:
setPeerExchangePeer(node, conf.peerExchangeNode)