Closed Gau-thier closed 3 years ago
Ah, my bad, forgot to update that callback. I think in Kafka.Producer
one has to manually unpack the Callback newtype wrapper to make it work. I opened a PR for it: #168
Maybe you could give it a try?
Thanks for the nice bug report!
v4.0.2
is on Hackage, thanks @gsebil08 and @phile314 ! :)
Hello! We are using this awesome lib for a while now.
Context
I tried today to upgrade from
3.1.0
to4.0.1
but I faced the following error on my project:Research
I did some research on the documentation, but did not find anything interesting, so I took a look on the code.
Without success and the same error, I also tried:
I found out this PR add the
But I also found out the
deliveryCallback
(that is leading to the previous error) still have the following signature:Conclusion
First, I really hope I did not miss anything in the documentation to upgrade from
3.1.2
to4.0.1
!Is the
Callback
wrapper the real responsible of the error I am currently facing?Bonus
I thought I would be able to fix this by myself, so in
Kafka.Producer.Callbacks
I tried:But then I get stuck on
Kafka.Producer
(line122) when:I am wondering if this is really necessary... Because in
Kafka.Producer.ProducerProperties
I would be happy and proud if I was able to help this project!
Thanks again!