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
seed: Don't error if self
isn't found
#392
Conversation
self
isn't foundself
isn't found
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.
@FintanH If I understand correctly, this should never happen with the recent fixes you landed. If the peer is in the tracked there should be a valid id for it, right?
I don't think so actually. We were able to get rad self before, possibly due to it being a symref -- but I'm honestly not sure. I guess it depends on the semantics here anyway. If there is an error in trying to retrieve the user, is it show-stopping for the seed or can it function without it? |
Iiuc, the code just walks the entire storage to find some A more efficient approach would be to perform a search only on the refs (ie. Maintaining an index In general, I think that ignoring all errors is not a good idea -- there's a plethora of things that can go wrong, and swallowing IO errors f.ex. will not improve the robustness of the seed node executable. |
Cool, maybe that's something we can implement in librad at some point, as this functionality is used in a couple of places now.
Fixed! |
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 description provided.