This commit is contained in:
@@ -47,7 +47,6 @@ class ProduceResponse_v2(Response):
|
||||
|
||||
|
||||
class ProduceResponse_v3(Response):
|
||||
# Adds support for message format v2
|
||||
API_KEY = 0
|
||||
API_VERSION = 3
|
||||
SCHEMA = ProduceResponse_v2.SCHEMA
|
||||
@@ -142,7 +141,7 @@ class ProduceRequest_v0(ProduceRequest):
|
||||
('topic', String('utf-8')),
|
||||
('partitions', Array(
|
||||
('partition', Int32),
|
||||
('records', Bytes)))))
|
||||
('messages', Bytes)))))
|
||||
)
|
||||
|
||||
|
||||
@@ -159,7 +158,6 @@ class ProduceRequest_v2(ProduceRequest):
|
||||
|
||||
|
||||
class ProduceRequest_v3(ProduceRequest):
|
||||
# Adds support for message format v2
|
||||
API_VERSION = 3
|
||||
RESPONSE_TYPE = ProduceResponse_v3
|
||||
SCHEMA = Schema(
|
||||
@@ -170,7 +168,7 @@ class ProduceRequest_v3(ProduceRequest):
|
||||
('topic', String('utf-8')),
|
||||
('partitions', Array(
|
||||
('partition', Int32),
|
||||
('records', Bytes)))))
|
||||
('messages', Bytes)))))
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user