mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-07 16:33:08 +00:00
properly pass userMessageLimit to OnchainGroupManager (#3407)
This commit is contained in:
parent
924cc9341a
commit
542968e8ab
@ -414,9 +414,12 @@ proc generateRlnValidator*(
|
|||||||
proc monitorEpochs(wakuRlnRelay: WakuRLNRelay) {.async.} =
|
proc monitorEpochs(wakuRlnRelay: WakuRLNRelay) {.async.} =
|
||||||
while true:
|
while true:
|
||||||
try:
|
try:
|
||||||
waku_rln_remaining_proofs_per_epoch.set(
|
if wakuRlnRelay.groupManager.userMessageLimit.isSome():
|
||||||
wakuRlnRelay.groupManager.userMessageLimit.get().float64
|
waku_rln_remaining_proofs_per_epoch.set(
|
||||||
)
|
wakuRlnRelay.groupManager.userMessageLimit.get().float64
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
error "userMessageLimit is not set in monitorEpochs"
|
||||||
except CatchableError:
|
except CatchableError:
|
||||||
error "Error in epoch monitoring", error = getCurrentExceptionMsg()
|
error "Error in epoch monitoring", error = getCurrentExceptionMsg()
|
||||||
|
|
||||||
@ -455,6 +458,7 @@ proc mount(
|
|||||||
(none(string), none(string))
|
(none(string), none(string))
|
||||||
|
|
||||||
groupManager = OnchainGroupManager(
|
groupManager = OnchainGroupManager(
|
||||||
|
userMessageLimit: some(conf.userMessageLimit),
|
||||||
ethClientUrls: conf.ethClientUrls,
|
ethClientUrls: conf.ethClientUrls,
|
||||||
ethContractAddress: $conf.ethContractAddress,
|
ethContractAddress: $conf.ethContractAddress,
|
||||||
chainId: conf.chainId,
|
chainId: conf.chainId,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user