-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(rln-relay): close db connection appropriately #1858
Conversation
ee3a505
to
f0a28e9
Compare
547fa03
to
97969d2
Compare
@@ -62,7 +62,8 @@ type | |||
const DefaultKeyStorePath* = "rlnKeystore.json" | |||
const DefaultKeyStorePassword* = "password" | |||
|
|||
const BlockChunkSize* = 100'u64 | |||
const DecayFactor* = 1.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this decay for block chunk size added by mistake to this PR? Does not seem to be really related to "close db connection" (or am I missing something?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unfortunately, while I was testing this fix, I discovered a bug related to the chunking of blocks, so I included it in this PR to ensure some stability - can remove if you'd like!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine by me, just wanted to make sure this was intentional:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Closes the connection to the pmtree database gracefully
Description
Changes
flush
waku_node.stop()
is called