Skip to content

Commit 46473ba

Browse files
authored
docs: Fix a few typos (#2319)
* docs: Fix a few typos There are small typos in: - kafka/codec.py - kafka/coordinator/base.py - kafka/record/abc.py - kafka/record/legacy_records.py Fixes: - Should read `timestamp` rather than `typestamp`. - Should read `minimum` rather than `miniumum`. - Should read `encapsulated` rather than `incapsulates`. - Should read `callback` rather than `callbak`. * Update abc.py
1 parent 94901bb commit 46473ba

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

kafka/codec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def _detect_xerial_stream(payload):
187187
The version is the version of this format as written by xerial,
188188
in the wild this is currently 1 as such we only support v1.
189189
190-
Compat is there to claim the miniumum supported version that
190+
Compat is there to claim the minimum supported version that
191191
can read a xerial block stream, presently in the wild this is
192192
1.
193193
"""

kafka/coordinator/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ def _run_once(self):
952952
# disable here to prevent propagating an exception to this
953953
# heartbeat thread
954954
# must get client._lock, or maybe deadlock at heartbeat
955-
# failure callbak in consumer poll
955+
# failure callback in consumer poll
956956
self.coordinator._client.poll(timeout_ms=0)
957957

958958
with self.coordinator._lock:

kafka/record/abc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def build(self):
8585

8686

8787
class ABCRecordBatch(object):
88-
""" For v2 incapsulates a RecordBatch, for v0/v1 a single (maybe
88+
""" For v2 encapsulates a RecordBatch, for v0/v1 a single (maybe
8989
compressed) message.
9090
"""
9191
__metaclass__ = abc.ABCMeta

kafka/record/legacy_records.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def __iter__(self):
263263

264264
# When magic value is greater than 0, the timestamp
265265
# of a compressed message depends on the
266-
# typestamp type of the wrapper message:
266+
# timestamp type of the wrapper message:
267267
if timestamp_type == self.LOG_APPEND_TIME:
268268
timestamp = self._timestamp
269269

0 commit comments

Comments
 (0)