summaryrefslogtreecommitdiff
path: root/test/test_fetcher.py
diff options
context:
space:
mode:
authorTaras Voinarovskiy <voyn1991@gmail.com>2017-08-25 09:38:27 +0000
committerTaras Voinarovskiy <voyn1991@gmail.com>2017-10-24 15:12:11 +0000
commit3af66bc542efff3f7010bec18b72d844e09488c4 (patch)
treea20623631b36230c9425b08ee95b85afbc9a9455 /test/test_fetcher.py
parente06af5343a55cf8d03e32a645ee970d872cb9ba0 (diff)
downloadkafka-python-v2_records.tar.gz
Add DefaultRecordBatch implementation aka V2 message format parser/builder.v2_records
Added bytecode optimization for varint and append/read_msg functions. Mostly based on avoiding LOAD_GLOBAL calls.
Diffstat (limited to 'test/test_fetcher.py')
-rw-r--r--test/test_fetcher.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_fetcher.py b/test/test_fetcher.py
index 364a808..ef3f686 100644
--- a/test/test_fetcher.py
+++ b/test/test_fetcher.py
@@ -54,7 +54,7 @@ def _build_record_batch(msgs, compression=0):
magic=1, compression_type=0, batch_size=9999999)
for msg in msgs:
key, value, timestamp = msg
- builder.append(key=key, value=value, timestamp=timestamp)
+ builder.append(key=key, value=value, timestamp=timestamp, headers=[])
builder.close()
return builder.buffer()