summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Powers <dana.powers@gmail.com>2017-06-19 17:18:59 -0700
committerDana Powers <dana.powers@gmail.com>2017-06-19 17:18:59 -0700
commitcf8c034b895839236247217ff8f8980bf28d63da (patch)
tree17f037fced57eed7899754469361ef84cb9b9d7f
parent2533680134ee8bfd8ab590114bd699340671f65f (diff)
downloadkafka-python-protocol_updates.tar.gz
Cleanup protocol change commentsprotocol_updates
-rw-r--r--kafka/protocol/fetch.py4
-rw-r--r--kafka/protocol/metadata.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/kafka/protocol/fetch.py b/kafka/protocol/fetch.py
index 6a61300..359f197 100644
--- a/kafka/protocol/fetch.py
+++ b/kafka/protocol/fetch.py
@@ -135,7 +135,7 @@ class FetchRequest_v3(Request):
class FetchRequest_v4(Request):
- """Adds isolation_level field"""
+ # Adds isolation_level field
API_KEY = 1
API_VERSION = 4
RESPONSE_TYPE = FetchResponse_v4
@@ -155,7 +155,7 @@ class FetchRequest_v4(Request):
class FetchRequest_v5(Request):
- """This may only be used in broker-broker api calls"""
+ # This may only be used in broker-broker api calls
API_KEY = 1
API_VERSION = 5
RESPONSE_TYPE = FetchResponse_v5
diff --git a/kafka/protocol/metadata.py b/kafka/protocol/metadata.py
index 4db9acf..2be8209 100644
--- a/kafka/protocol/metadata.py
+++ b/kafka/protocol/metadata.py
@@ -81,7 +81,7 @@ class MetadataResponse_v3(Response):
('host', String('utf-8')),
('port', Int32),
('rack', String('utf-8')))),
- ('cluster_id', String('utf-8')), # <-- Added cluster_id field in v2
+ ('cluster_id', String('utf-8')),
('controller_id', Int32),
('topics', Array(
('error_code', Int16),