Skip to content

Commit

Permalink
Add Pull Consumer builders
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarema committed Jul 12, 2022
1 parent 5d261c3 commit 3106cd1
Show file tree
Hide file tree
Showing 5 changed files with 527 additions and 72 deletions.
2 changes: 1 addition & 1 deletion async-nats/examples/jetstream_pull.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async fn main() -> Result<(), async_nats::Error> {
.await?;
}

let mut messages = consumer.stream().await?.take(10);
let mut messages = consumer.messages().await?.take(10);

while let Some(message) = messages.next().await {
let message = message?;
Expand Down
Loading

0 comments on commit 3106cd1

Please sign in to comment.