-
Notifications
You must be signed in to change notification settings - Fork 173
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
Add kv::watch_many functions #1364
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Tomasz Pietrek <[email protected]>
Signed-off-by: Tomasz Pietrek <[email protected]>
Signed-off-by: Tomasz Pietrek <[email protected]>
Signed-off-by: Tomasz Pietrek <[email protected]>
async-nats/src/jetstream/kv/mod.rs
Outdated
@@ -507,6 +507,41 @@ impl Store { | |||
.await | |||
} | |||
|
|||
/// Creates a [futures::Stream] over [Entries][Entry] a given key in the bucket, which yields |
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.
Something seems to be missing here
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.
fixed.
.stream | ||
.create_consumer(super::consumer::push::OrderedConfig { | ||
deliver_subject: self.stream.context.client.new_inbox(), | ||
description: Some("kv watch consumer".to_string()), |
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 some kid of convention used across the clients? Because if not, I don;t think it's good we have that description from one client but not from others.
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.
Let's discuss this on the OSS call. I think we did, but we never made it into ADR.
However- this convention is used across the client, so it's consistent at least in the context of the PR.
Signed-off-by: Tomasz Pietrek <[email protected]>
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!
Signed-off-by: Tomasz Pietrek [email protected]