Skip to content

Commit

Permalink
Fix ordered-consumer example
Browse files Browse the repository at this point in the history
Ordered consumer does not need to deliver an ACK (uses AckNone).

Signed-off-by: reubenninan <[email protected]>
  • Loading branch information
ReubenMathew authored and Jarema committed Nov 12, 2023
1 parent b2740d8 commit 0fface3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion async-nats/src/jetstream/consumer/pull.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,6 @@ impl<'a> Consumer<OrderedConfig> {
/// let mut messages = consumer.messages().await?.take(100);
/// while let Some(Ok(message)) = messages.next().await {
/// println!("got message {:?}", message);
/// message.ack().await?;
/// }
/// Ok(())
/// # }
Expand Down

0 comments on commit 0fface3

Please sign in to comment.