mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-04 06:53:12 +00:00
fix: rest fix for sync protocol (#3503)
This commit is contained in:
parent
7611137c1f
commit
9de9f9e115
@ -240,6 +240,13 @@ proc setupProtocols(
|
|||||||
).isOkOr:
|
).isOkOr:
|
||||||
return err("failed to mount waku store sync protocol: " & $error)
|
return err("failed to mount waku store sync protocol: " & $error)
|
||||||
|
|
||||||
|
if conf.remoteStoreNode.isSome():
|
||||||
|
let storeNode = parsePeerInfo(conf.remoteStoreNode.get()).valueOr:
|
||||||
|
return err("failed to set node waku store-sync peer: " & error)
|
||||||
|
|
||||||
|
node.peerManager.addServicePeer(storeNode, WakuReconciliationCodec)
|
||||||
|
node.peerManager.addServicePeer(storeNode, WakuTransferCodec)
|
||||||
|
|
||||||
mountStoreClient(node)
|
mountStoreClient(node)
|
||||||
if conf.remoteStoreNode.isSome():
|
if conf.remoteStoreNode.isSome():
|
||||||
let storeNode = parsePeerInfo(conf.remoteStoreNode.get())
|
let storeNode = parsePeerInfo(conf.remoteStoreNode.get())
|
||||||
|
|||||||
@ -174,7 +174,7 @@ proc installAdminV1GetPeersHandler(router: var RestRouter, node: WakuNode) =
|
|||||||
@[
|
@[
|
||||||
WakuRelayCodec, WakuFilterSubscribeCodec, WakuStoreCodec, WakuLegacyStoreCodec,
|
WakuRelayCodec, WakuFilterSubscribeCodec, WakuStoreCodec, WakuLegacyStoreCodec,
|
||||||
WakuLegacyLightPushCodec, WakuLightPushCodec, WakuPeerExchangeCodec,
|
WakuLegacyLightPushCodec, WakuLightPushCodec, WakuPeerExchangeCodec,
|
||||||
WakuReconciliationCodec,
|
WakuReconciliationCodec, WakuTransferCodec,
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user