lib/waterdrop/config.rb in waterdrop-2.3.1 vs lib/waterdrop/config.rb in waterdrop-2.3.2
- old
+ new
@@ -3,11 +3,11 @@
# Configuration and descriptions are based on the delivery boy zendesk gem
# @see https://github.com/zendesk/delivery_boy
module WaterDrop
# Configuration object for setting up all options required by WaterDrop
class Config
- include Dry::Configurable
+ include Configurable
# Defaults for kafka settings, that will be overwritten only if not present already
KAFKA_DEFAULTS = {
'client.id': 'waterdrop'
}.freeze
@@ -66,9 +66,11 @@
Contracts::Config.new.validate!(config.to_h, Errors::ConfigurationInvalidError)
::Rdkafka::Config.logger = config.logger
end
+
+ self
end
private
# Propagates the kafka setting defaults unless they are already present