You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(.send producer (->record {:key k :value v :topic topic :headers headers :partition0:timestamp11})))
Timestamp defaulting to 11 and not 0 as specified by docstring seems weird.
More importantly, why do we need such defaults? They override Kafka API behavior with regards to default values, and they make (send! [this topic k v]) and (send! [this topic k v headers]) behave inconsistently (the first does not override Kafka API behavior, the second does).
Best is to not define any default values and let library clients handle them when needed.
The text was updated successfully, but these errors were encountered:
Hi @pyr, best wishes to you too!
Thanks for correcting this, I had little time when I filed this issue and could have provided a PR.
Nevertheless I just submitted a larger PR that also completes your fix by removing the no longer necessary associated comment: bd07134#diff-5b6773780a4aa4b34911da7bc0b98b21L570
See
kinsky/src/kinsky/client.clj
Line 569 in a530907
Timestamp defaulting to 11 and not 0 as specified by docstring seems weird.
More importantly, why do we need such defaults? They override Kafka API behavior with regards to default values, and they make
(send! [this topic k v])
and(send! [this topic k v headers])
behave inconsistently (the first does not override Kafka API behavior, the second does).Best is to not define any default values and let library clients handle them when needed.
The text was updated successfully, but these errors were encountered: