This repository was archived by the owner on Nov 8, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 ) ) ;
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 ///
You can’t perform that action at this time.
0 commit comments