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
According to the code, the only way to use the ConsumerRebalanceListener is using the subscribe method, I was wondering: Why is not also possible to set a ConsumerRebalanceListener when a Consumer is created using the __init__? I think if we do this, the testing will become easier because of mocking and you won’t be force to use the subscribe method.
In the init method is used self._subscription.subscribe(…) which accepts a ConsumerRebalanceListener argument, so I think it is possible to make it.
Ideally, I think both options should be possible. If the user set a new ConsumerRebalanceListenter using the subscribe method, it should prevail.
what do you think?
The text was updated successfully, but these errors were encountered:
Hi,
Thanks for the work that you are doing!!
According to the code, the only way to use the
ConsumerRebalanceListener
is using thesubscribe
method, I was wondering: Why is not also possible to set aConsumerRebalanceListener
when aConsumer
is created using the__init__
? I think if we do this, the testing will become easier because of mocking and you won’t be force to use thesubscribe
method.In the
init
method is usedself._subscription.subscribe(…)
which accepts aConsumerRebalanceListener
argument, so I think it is possible to make it.Ideally, I think both options should be possible. If the user set a new
ConsumerRebalanceListenter
using thesubscribe
method, it should prevail.what do you think?
The text was updated successfully, but these errors were encountered: