DRY-up the OffsetCommitResponse Structs (#970)
This commit is contained in:
@@ -19,25 +19,13 @@ class OffsetCommitResponse_v0(Struct):
|
||||
class OffsetCommitResponse_v1(Struct):
|
||||
API_KEY = 8
|
||||
API_VERSION = 1
|
||||
SCHEMA = Schema(
|
||||
('topics', Array(
|
||||
('topic', String('utf-8')),
|
||||
('partitions', Array(
|
||||
('partition', Int32),
|
||||
('error_code', Int16)))))
|
||||
)
|
||||
SCHEMA = OffsetCommitResponse_v0.SCHEMA
|
||||
|
||||
|
||||
class OffsetCommitResponse_v2(Struct):
|
||||
API_KEY = 8
|
||||
API_VERSION = 2
|
||||
SCHEMA = Schema(
|
||||
('topics', Array(
|
||||
('topic', String('utf-8')),
|
||||
('partitions', Array(
|
||||
('partition', Int32),
|
||||
('error_code', Int16)))))
|
||||
)
|
||||
SCHEMA = OffsetCommitResponse_v1.SCHEMA
|
||||
|
||||
|
||||
class OffsetCommitRequest_v0(Struct):
|
||||
|
||||
Reference in New Issue
Block a user