-
Notifications
You must be signed in to change notification settings - Fork 151
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
KV Watch Multiple Filters #887
Conversation
@@ -91,7 +96,7 @@ void Handler(object sender, MsgHandlerEventArgs args) | |||
} | |||
} | |||
|
|||
sub = kv.js.PushSubscribeAsync(subscribeSubject, Handler, false, pso); | |||
sub = kv.js.PushSubscribeAsync(null, Handler, false, pso); |
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.
filter subject is used when subscribe subject is null
@@ -915,6 +921,10 @@ public void TestWatch() | |||
subs.Add(kv.Watch("key.*", starMetaWatcher, starMetaWatcher.WatchOptions)); | |||
subs.Add(kv.Watch("key.>", gtFullWatcher, gtFullWatcher.WatchOptions)); | |||
subs.Add(kv.Watch("key.>", gtMetaWatcher, gtMetaWatcher.WatchOptions)); | |||
subs.Add(kv.Watch(allKeys, multipleFullWatcher, multipleFullWatcher.WatchOptions)); | |||
subs.Add(kv.Watch(allKeys, multipleMetaWatcher, multipleMetaWatcher.WatchOptions)); |
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.
Tests the IList version
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.
only thing is I'm not sure about the comma delimited keys, otherwise looks good!
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
nats-io/nats-architecture-and-design#277