File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -195,7 +195,9 @@ async def _subscribe(self) -> None:
195195 )
196196
197197 async def get_records (
198- self , * ,
198+ self ,
199+ * ,
200+ max_bytes : int ,
199201 timeout : int = 10000
200202 ) -> t .AsyncGenerator [t .Dict [str , t .Any ], None ]:
201203 while True :
@@ -205,7 +207,7 @@ async def get_records(
205207 group_id = self ._group_id ,
206208 name = self ._consumer_name ,
207209 ),
208- params = {'timeout' : timeout },
210+ params = {'timeout' : timeout , 'max_bytes' : max_bytes },
209211 headers = {'Accept' : 'application/vnd.kafka.binary.v2+json' },
210212 )
211213 if response .status != 200 :
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " kafka-bridge-client"
3- version = " 0.1.5 "
3+ version = " 0.2.0 "
44description = " Python client for Strimzi Kafka Bridge"
55authors = [" Bogdan Zaseka <zaseka.bogdan@gmail.com>" ]
66license = " MIT"
You can’t perform that action at this time.
0 commit comments