Open 9il opened 7 years ago
and is it a problem to use producev?
No problem
It is just porting artifact.
The prototype will look like:
ErrorCode produce(Topic topic, int partition, void[] payload,
const(void)[] key = null,
long timestamp = Clock.currTime(UTC()).toUnixTime!long,
int msgflags = MsgOpt.copy, void* msg_opaque = null)
with default parameter: long timestamp = Clock.currTime(UTC()).toUnixTime!long
.
yep please port
@9il is this in now?
No, I commented this change because it does not work. Will update examples first, and then try again.
D wrapper as CPP wrapper successor uses
rd_kafka_produce
instead of new variadic interface that have timestamp support.