Skip to content

Commit bff6cae

Browse files
committed
A few fixes for offset APIs in 0.8.1
1 parent fd45ca5 commit bff6cae

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

kafka/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def send_offset_commit_request(self, group, payloads=[], fail_on_error=True, cal
231231

232232
def send_offset_fetch_request(self, group, payloads=[], fail_on_error=True, callback=None):
233233
resps = self._send_broker_aware_request(payloads,
234-
partial(KafkaProtocol.encode_offset_commit_fetch, group=group),
234+
partial(KafkaProtocol.encode_offset_fetch_request, group=group),
235235
KafkaProtocol.decode_offset_fetch_response)
236236
out = []
237237
for resp in resps:

kafka/protocol.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,6 @@ def decode_offset_commit_response(cls, data):
354354
======
355355
data: bytes to decode
356356
"""
357-
data = data[2:] # TODO remove me when versionId is removed
358357
((correlation_id,), cur) = relative_unpack('>i', data, 0)
359358
(client_id, cur) = read_short_string(data, cur)
360359
((num_topics,), cur) = relative_unpack('>i', data, cur)
@@ -398,7 +397,6 @@ def decode_offset_fetch_response(cls, data):
398397
data: bytes to decode
399398
"""
400399

401-
data = data[2:] # TODO remove me when versionId is removed
402400
((correlation_id,), cur) = relative_unpack('>i', data, 0)
403401
(client_id, cur) = read_short_string(data, cur)
404402
((num_topics,), cur) = relative_unpack('>i', data, cur)

0 commit comments

Comments
 (0)