-
Notifications
You must be signed in to change notification settings - Fork 256
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
rados: implement watch/notify APIs #634
Conversation
9364784
to
90f27f7
Compare
90f27f7
to
e590a2c
Compare
I've given it a quick skim and it generally looks good so far. I'm sure I'll have some more comments when I look deeper but I think it'll be really good to have this. |
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.
As before I think the general structure looks good and the test appear pretty thorough, thanks! There are a few things here and there that I think we should clean up, but I don't think they're invasive changes.
This pull request now has conflicts with the target branch. Could you please resolve conflicts and force push the corrected changes? 🙏 |
9ad592e
to
732161e
Compare
This pull request now has conflicts with the target branch. Could you please resolve conflicts and force push the corrected changes? 🙏 |
@ansiwen you'll need to manually resolve the merge conflicts, unfortortunately |
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.
I would like to see the parsing code simplified a bit. That's all that remains.
732161e
to
b6ce62a
Compare
Pull request has been modified.
b6ce62a
to
f3bb7b8
Compare
This change implements the bindings for the watch/notify APIs of librados. Instead of callbacks, the watcher is implemented with more Go-idiomatic channels. A watcher object exposes two read-only channels, one to receive the notify events and one to receive occuring errors. Signed-off-by: Sven Anderson <sven@redhat.com>
Signed-off-by: Sven Anderson <sven@redhat.com>
f3bb7b8
to
0d72d0d
Compare
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!
This change implements the bindings for the watch/notify APIs of
librados. Instead of callbacks, the watcher is implemented with more
Go-idiomatic channels. A watcher object exposes two read-only
channels, one to receive the notify events and one to receive
occuring errors.
Signed-off-by: Sven Anderson sven@redhat.com
Checklist