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:
195
195
)
196
196
197
197
async def get_records (
198
- self , * ,
198
+ self ,
199
+ * ,
200
+ max_bytes : int ,
199
201
timeout : int = 10000
200
202
) -> t .AsyncGenerator [t .Dict [str , t .Any ], None ]:
201
203
while True :
@@ -205,7 +207,7 @@ async def get_records(
205
207
group_id = self ._group_id ,
206
208
name = self ._consumer_name ,
207
209
),
208
- params = {'timeout' : timeout },
210
+ params = {'timeout' : timeout , 'max_bytes' : max_bytes },
209
211
headers = {'Accept' : 'application/vnd.kafka.binary.v2+json' },
210
212
)
211
213
if response .status != 200 :
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " kafka-bridge-client"
3
- version = " 0.1.5 "
3
+ version = " 0.2.0 "
4
4
description = " Python client for Strimzi Kafka Bridge"
5
5
authors = [" Bogdan Zaseka <zaseka.bogdan@gmail.com>" ]
6
6
license = " MIT"
You can’t perform that action at this time.
0 commit comments