Closed alfamegaxq closed 4 years ago
I have created a pull request for this issue. Please take a look: https://github.com/narcisoguillen/kafka-node-avro/pull/16
Hey thanks for helping making kafka-node-avro better
I just add a change so it applies to any other field being sent , such us partition
or attributes
As in documentation of the send method parameters:
kafka-node producer could take advantage of this timestamp parameter as we can see in kafka-node/lib/baseProducer.js
return new Message(0, 0, p.key, message, p.timestamp || Date.now());
But when I pass timestamp to kafka-node-avro it is ignored and default
Date.now()
is usedThis field shouldn't be ignored.