fix(rln-relay): flush_interval incorrectly set (#1933)

This commit is contained in:
Aaryamann Challani 2023-08-23 18:23:44 +05:30 committed by GitHub
parent 1ae5b5a951
commit c07d63db46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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
@ -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)]
@ -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
)
)