-
Notifications
You must be signed in to change notification settings - Fork 60
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
chore(rln-relay): refactor mounting procedure #1457
Conversation
Checks are intermittently failing due to an unrelated error -
|
Could you file this failure in #1357? |
Already exists :) (the last one) |
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 ✅
A comment for future refactoring work:
If I understand the RLN module correctly, we have two mount protocol modes selected by the
rlnRelayDynamic
configuration flag.To boost this module's extensibility and maintainability (e.g. testability), we should generalize the RLN protocol by extracting an interface that covers both modes and provides this behaviour through the constructor (check the driver interface and how we "inject" it into the Waku archive instance).
We can have a synchronous analysis and design session if needed 😁
Agreed, I'll do that as part of #1370, thanks for your review :) |
# set up three nodes | ||
# node1 |
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.
are these repeted?
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.
No, it isn't, if you're referring to different tests that setup 3 nodes, they test something different each time ;)
return err("dynamic rln-relay could not be mounted: " & rlnRelayRes.error()) | ||
let wakuRlnRelay = rlnRelayRes.get() | ||
if persistCredentials: | ||
# TODO should be replaced with key-store with proper encryption |
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.
Probably this comment can be removed now
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.
Indeed! addressed in e8f4aaa
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! Great PR!
Refactors the mounting procedure of waku-rln-relay