mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-29 19:23:09 +00:00
deploy: 0bc33009075cc313c76cf3c0942a94106dfde254
This commit is contained in:
parent
08acf9607c
commit
16444ecd8b
@ -703,8 +703,6 @@ when isMainModule:
|
||||
if conf.storenode != "":
|
||||
setStorePeer(node, conf.storenode)
|
||||
|
||||
if conf.persistMessages:
|
||||
waitFor node.resume()
|
||||
|
||||
|
||||
# Relay setup
|
||||
@ -713,6 +711,10 @@ when isMainModule:
|
||||
rlnRelayEnabled = conf.rlnRelay,
|
||||
keepAlive = conf.keepAlive,
|
||||
relayMessages = conf.relay) # Indicates if node is capable to relay messages
|
||||
|
||||
# Resume historical messages, this has to be called after the relay setup
|
||||
if conf.store and conf.persistMessages:
|
||||
waitFor node.resume()
|
||||
|
||||
if conf.staticnodes.len > 0:
|
||||
waitFor connectToNodes(node, conf.staticnodes)
|
||||
@ -761,4 +763,4 @@ when isMainModule:
|
||||
|
||||
c_signal(SIGTERM, handleSigterm)
|
||||
|
||||
runForever()
|
||||
runForever()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user