Skip to content

Commit

Permalink
Shorten argument name for initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
esmarkowski committed Jul 11, 2012
1 parent 9bca491 commit b89368b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/redis/distributed.rb
Expand Up @@ -15,11 +15,11 @@ def message

attr_reader :ring

def initialize(urls_or_config_hashes, options = {})
def initialize(node_configs, options = {})
@tag = options.delete(:tag) || /^\{(.+?)\}/
@default_options = options
@ring = HashRing.new
urls_or_config_hashes.map { |node_config| add_node(node_config) }
node_configs.map { |node_config| add_node(node_config) }
@subscribed_node = nil
end

Expand Down

0 comments on commit b89368b

Please sign in to comment.