From 4b2cd8d83d003a48bc269ee71994fcd09c20cc2b Mon Sep 17 00:00:00 2001 From: Donal McBreen Date: Tue, 26 Sep 2023 13:53:33 +0100 Subject: [PATCH] No need for shard options default --- lib/solid_cache/connections.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/solid_cache/connections.rb b/lib/solid_cache/connections.rb index 324d77d..379245e 100644 --- a/lib/solid_cache/connections.rb +++ b/lib/solid_cache/connections.rb @@ -7,7 +7,7 @@ def self.from_config(options) names = SolidCache.all_shard_keys nodes = names.to_h { |name| [ name, name ] } when Array - names = options || SolidCache.all_shard_keys + names = options nodes = names.to_h { |name| [ name, name ] } when Hash names = options.keys