diff options
-rw-r--r-- | kafka/producer/kafka.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kafka/producer/kafka.py b/kafka/producer/kafka.py index ae28779..4a93de6 100644 --- a/kafka/producer/kafka.py +++ b/kafka/producer/kafka.py @@ -554,7 +554,7 @@ class KafkaProducer(object): partition = self._partition(topic, partition, key, value, key_bytes, value_bytes) - message_size = self._estimate_size_in_bytes(key, value) + message_size = self._estimate_size_in_bytes(key_bytes, value_bytes) self._ensure_valid_record_size(message_size) tp = TopicPartition(topic, partition) |