-
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 extended purge #739
Add extended purge #739
Conversation
9ca3c58
to
2eb4885
Compare
addresses nats-io/nats-architecture-and-design#4 |
I've got a slightly different approach in mind, still using a builder but into_future to make it look like a single async call chain. Will raise a competing PR shortly. |
ac65c5a
to
006d40e
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.
Spot on to what I had in mind, digging this! Raising the same for request today 😁
Some nitpicky nits
async-nats/tests/jetstream_tests.rs
Outdated
@@ -470,6 +470,34 @@ mod jetstream { | |||
|
|||
assert_eq!(stream.info().await.unwrap().state.messages, 3); | |||
} | |||
#[tokio::test] | |||
async fn send_purge() { |
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.
async fn send_purge() { | |
async fn purge() { |
async-nats/src/jetstream/stream.rs
Outdated
SEQUENCE: ToAssign, | ||
KEEP: ToAssign, | ||
{ | ||
stream: crate::jetstream::stream::Stream, |
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.
You're in the same scope here?
stream: crate::jetstream::stream::Stream, | |
stream: Stream, |
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
a1f302f
to
ed7716e
Compare
No description provided.