mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-10 01:43:11 +00:00
feat: update test
This commit is contained in:
parent
3f5f07eae6
commit
86180b2db4
@ -498,3 +498,13 @@ method init*(g: OnchainGroupManager): Future[GroupManagerResult[void]] {.async.}
|
||||
g.initialized = true
|
||||
|
||||
return ok()
|
||||
|
||||
method stop*(g: OnchainGroupManager): Future[void] {.async, gcsafe.} =
|
||||
if g.ethRpc.isSome():
|
||||
g.ethRpc.get().ondisconnect = nil
|
||||
await g.ethRpc.get().close()
|
||||
let flushed = g.rlnInstance.flush()
|
||||
if not flushed:
|
||||
error "failed to flush to the tree db"
|
||||
|
||||
g.initialized = false
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user