diff options
Diffstat (limited to 'kafka/producer/kafka.py')
-rw-r--r-- | kafka/producer/kafka.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kafka/producer/kafka.py b/kafka/producer/kafka.py index f2a480b..a53ac49 100644 --- a/kafka/producer/kafka.py +++ b/kafka/producer/kafka.py @@ -546,8 +546,6 @@ class KafkaProducer(object): self._ensure_valid_record_size(message_size) tp = TopicPartition(topic, partition) - if timestamp_ms is None: - timestamp_ms = int(time.time() * 1000) log.debug("Sending (key=%r value=%r) to %s", key, value, tp) result = self._accumulator.append(tp, timestamp_ms, key_bytes, value_bytes, |