Skip to content

Commit

Permalink
fix(rln-relay): flush_interval incorrectly set (#1933)
Browse files Browse the repository at this point in the history
  • Loading branch information
rymnc authored Aug 23, 2023
1 parent 1ae5b5a commit c07d63d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions waku/waku_rln_relay/rln/wrappers.nim
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ type RlnTreeConfig = ref object of RootObj
cache_capacity: int
mode: string
compression: bool
flush_interval: int
flush_every_ms: int
path: string

type RlnConfig = ref object of RootObj
Expand All @@ -72,7 +72,7 @@ proc `%`(c: RlnConfig): JsonNode =
let tree_config = %{ "cache_capacity": %c.tree_config.cache_capacity,
"mode": %c.tree_config.mode,
"compression": %c.tree_config.compression,
"flush_interval": %c.tree_config.flush_interval,
"flush_every_ms": %c.tree_config.flush_every_ms,
"path": %c.tree_config.path }
return %[("resources_folder", %c.resources_folder),
("tree_config", %tree_config)]
Expand All @@ -91,7 +91,7 @@ proc createRLNInstanceLocal(d = MerkleTreeDepth,
cache_capacity: 15_000,
mode: "high_throughput",
compression: false,
flush_interval: 500,
flush_every_ms: 500,
path: if tree_path != "": tree_path else: DefaultRlnTreePath
)
)
Expand Down

0 comments on commit c07d63d

Please sign in to comment.