-
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
fix(rln-relay): handle empty metadata returned by getMetadata proc #2516
Conversation
elif metadataGetRes.get().isSome(): | ||
let metadata = metadataGetRes.get().get() |
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.
not the cleanest, but oh well
You can find the image built from this PR at
Built from 28977e5 |
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, thanks so much! 🤩
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! Thanks! 💯
Description
This PR silences the execution error that is received when trying to fetch the rln metadata from the db.
Zerokit's PR: vacp2p/zerokit#231
If it returns a buf of len 0, then we assume the metadata is not found, and proceed execution as usual.
Changes
How to test
make -j16 test
Issue
closes #2471