Skip to content
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 pull builder for Fetch and Batch #565

Merged
merged 1 commit into from
Jul 12, 2022
Merged

Conversation

Jarema
Copy link
Member

@Jarema Jarema commented Jul 12, 2022

No description provided.

@Jarema Jarema requested a review from caspervonb July 12, 2022 09:47
@Jarema Jarema marked this pull request as draft July 12, 2022 09:48
/// while let Some(Ok(message)) = messages.next().await {
/// println!("got message {:?}", message);
/// message.ack().await?;
/// }
/// Ok(())
/// # }
/// ```
pub async fn stream(&self) -> Result<Stream<'_>, Error> {
pub async fn messages(&self) -> Result<Stream<'_>, Error> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pub async fn messages(&self) -> Result<Stream<'_>, Error> {
pub async fn messages(&self) -> Result<Messages<'_>, Error> {

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, changed to that already.

@@ -102,7 +102,7 @@ impl Consumer<Config> {
/// }
/// # Ok(())
/// # }
pub fn stream_builder(&self) -> StreamBuilder<'_> {
pub fn stream(&self) -> StreamBuilder<'_> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pub fn stream(&self) -> StreamBuilder<'_> {
pub fn stream(&self) -> Stream<'_> {

async-nats/src/jetstream/consumer/pull.rs Show resolved Hide resolved
async-nats/src/jetstream/consumer/pull.rs Show resolved Hide resolved
@Jarema Jarema marked this pull request as ready for review July 12, 2022 10:49
Copy link
Collaborator

@caspervonb caspervonb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Jarema Jarema merged commit dbaa71f into main Jul 12, 2022
@Jarema Jarema deleted the jarema/new-pull-builder branch July 12, 2022 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants