-
Notifications
You must be signed in to change notification settings - Fork 169
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
Conversation
2d6ab85
to
9092f50
Compare
/// 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> { |
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.
pub async fn messages(&self) -> Result<Stream<'_>, Error> { | |
pub async fn messages(&self) -> Result<Messages<'_>, Error> { |
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.
yep, changed to that already.
@@ -102,7 +102,7 @@ impl Consumer<Config> { | |||
/// } | |||
/// # Ok(()) | |||
/// # } | |||
pub fn stream_builder(&self) -> StreamBuilder<'_> { | |||
pub fn stream(&self) -> StreamBuilder<'_> { |
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.
pub fn stream(&self) -> StreamBuilder<'_> { | |
pub fn stream(&self) -> 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
45bf2a7
to
e4e2e12
Compare
e4e2e12
to
3106cd1
Compare
No description provided.