File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 11# Rdkafka Changelog
22
33## 0.14.0 (Unreleased)
4+ - [ Enhancement] Allow for setting ` statistics_callback ` as nil to reset predefined settings configured by a different gem (mensfeld)
45* [ Enhancement] Get consumer position (thijsc & mensfeld)
56* [ Enhancement] Provide ` #purge ` to remove any outstanding requests from the producer (mensfeld)
67* [ Enhancement] Update ` librdkafka ` to ` 2.2.0 ` (mensfeld)
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ def self.logger=(logger)
5757 #
5858 # @return [nil]
5959 def self . statistics_callback = ( callback )
60- raise TypeError . new ( "Callback has to be callable" ) unless callback . respond_to? ( :call )
60+ raise TypeError . new ( "Callback has to be callable" ) unless callback . respond_to? ( :call ) || callback == nil
6161 @@statistics_callback = callback
6262 end
6363
You can’t perform that action at this time.
0 commit comments