lib/ldclient-rb/integrations/consul.rb in launchdarkly-server-sdk-6.3.1 vs lib/ldclient-rb/integrations/consul.rb in launchdarkly-server-sdk-6.3.2
- old
+ new
@@ -34,10 +34,10 @@
# @option opts [Logger] :logger a `Logger` instance; defaults to `Config.default_logger`
# @option opts [Integer] :expiration (15) expiration time for the in-memory cache, in seconds; 0 for no local caching
# @option opts [Integer] :capacity (1000) maximum number of items in the cache
# @return [LaunchDarkly::Interfaces::FeatureStore] a feature store object
#
- def self.new_feature_store(opts, &block)
+ def self.new_feature_store(opts = {})
core = LaunchDarkly::Impl::Integrations::Consul::ConsulFeatureStoreCore.new(opts)
return LaunchDarkly::Integrations::Util::CachingStoreWrapper.new(core, opts)
end
end
end