Skip to content

Commit 57a17af

Browse files
chore: more streamline of static and base group manager
1 parent cb3f099 commit 57a17af

File tree

4 files changed

+1
-15
lines changed

4 files changed

+1
-15
lines changed

waku/waku_rln_relay/group_manager/group_manager_base.nim

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,6 @@ type GroupManager* = ref object of RootObj
4040
method init*(g: GroupManager): Future[GroupManagerResult[void]] {.base, async.} =
4141
return err("init proc for " & $g.type & " is not implemented yet")
4242

43-
# This proc is used to start the group sync process
44-
# It should be used to sync the group state with the rest of the group members
45-
method startGroupSync*(
46-
g: GroupManager
47-
): Future[GroupManagerResult[void]] {.base, async.} =
48-
return err("startGroupSync proc for " & $g.type & " is not implemented yet")
49-
5043
# This proc is used to register a new identity commitment into the merkle tree
5144
# The user may or may not have the identity secret to this commitment
5245
# It should be used when detecting new members in the group, and syncing the group state

waku/waku_rln_relay/group_manager/on_chain/group_manager.nim

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,6 @@ method withdraw*(
278278
): Future[void] {.async: (raises: [Exception]).} =
279279
initializedGuard(g) # TODO: after slashing is enabled on the contract
280280

281-
method withdrawBatch*(
282-
g: OnchainGroupManager, idCommitments: seq[IDCommitment]
283-
): Future[void] {.async: (raises: [Exception]).} =
284-
initializedGuard(g)
285-
286281
proc getRootFromProofAndIndex(
287282
g: OnchainGroupManager, elements: seq[byte], bits: seq[byte]
288283
): GroupManagerResult[array[32, byte]] =

waku/waku_rln_relay/group_manager/static/group_manager.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ method init*(g: StaticGroupManager): Future[GroupManagerResult[void]] {.async.}
4545

4646
method startGroupSync*(
4747
g: StaticGroupManager
48-
): Future[GroupManagerResult[void]] {.async.} =
48+
): Future[GroupManagerResult[void]] {.base, async.} =
4949
?g.resultifiedInitGuard()
5050
# No-op
5151
return ok()

waku/waku_rln_relay/rln/wrappers.nim

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ type RlnTreeConfig = ref object of RootObj
6363
mode: string
6464
compression: bool
6565
flush_every_ms: int
66-
path: string
6766

6867
type RlnConfig = ref object of RootObj
6968
resources_folder: string
@@ -78,7 +77,6 @@ proc `%`(c: RlnConfig): JsonNode =
7877
"mode": %c.tree_config.mode,
7978
"compression": %c.tree_config.compression,
8079
"flush_every_ms": %c.tree_config.flush_every_ms,
81-
"path": %c.tree_config.path,
8280
}
8381
return %[("resources_folder", %c.resources_folder), ("tree_config", %tree_config)]
8482

0 commit comments

Comments
 (0)