Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 3c959d7

Browse files
committed
wip
1 parent ecbbc1d commit 3c959d7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/backends/kafka/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ impl ArroyoConsumer for KafkaConsumer {
180180
}
181181

182182
fn poll(
183-
&self,
183+
&mut self,
184184
timeout: Option<Duration>,
185185
) -> Result<Option<ArroyoMessage<Payload<'_>>>, PollError> {
186186
let duration = timeout.unwrap_or(Duration::from_millis(100));

src/backends/local/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ impl Consumer for LocalConsumer {
130130
Ok(())
131131
}
132132

133-
fn poll(&self, _timeout: Option<Duration>) -> Result<Option<Message<Payload>>, PollError> {
133+
fn poll(&mut self, _timeout: Option<Duration>) -> Result<Option<Message<Payload>>, PollError> {
134134
if self.closed {
135135
return Err(PollError::ConsumerClosed);
136136
}

src/backends/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ pub trait Consumer {
109109
/// consumer attempts to read from an invalid location in one of it's
110110
/// assigned partitions. (Additional details can be found in the
111111
/// docstring for ``Consumer.seek``.)
112-
fn poll(&self, timeout: Option<Duration>) -> Result<Option<Message<Payload>>, PollError>;
112+
fn poll(&mut self, timeout: Option<Duration>) -> Result<Option<Message<Payload>>, PollError>;
113113

114114
/// Pause consuming from the provided partitions.
115115
///

0 commit comments

Comments
 (0)