mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-08 00:43:06 +00:00
static sharding fix
This commit is contained in:
parent
3686a38006
commit
0024e938fa
@ -127,8 +127,12 @@ proc setupAppCallbacks(
|
|||||||
if node.wakuRelay.isNil():
|
if node.wakuRelay.isNil():
|
||||||
return err("Cannot configure relayHandler callback without Relay mounted")
|
return err("Cannot configure relayHandler callback without Relay mounted")
|
||||||
|
|
||||||
let autoShards = node.getAutoshards(conf.contentTopics).valueOr:
|
let autoShards =
|
||||||
return err("Could not get autoshards: " & error)
|
if node.wakuAutoSharding.isSome():
|
||||||
|
node.getAutoshards(conf.contentTopics).valueOr:
|
||||||
|
return err("Could not get autoshards: " & error)
|
||||||
|
else:
|
||||||
|
@[]
|
||||||
|
|
||||||
let confShards = conf.subscribeShards.mapIt(
|
let confShards = conf.subscribeShards.mapIt(
|
||||||
RelayShard(clusterId: conf.clusterId, shardId: uint16(it))
|
RelayShard(clusterId: conf.clusterId, shardId: uint16(it))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user