Skip to content

Commit

Permalink
No need for shard options default
Browse files Browse the repository at this point in the history
  • Loading branch information
djmb committed Sep 26, 2023
1 parent a5a6d97 commit 4b2cd8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/solid_cache/connections.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b2cd8d

Please sign in to comment.