lib/redis_ring/application.rb in redis_ring-0.1.1 vs lib/redis_ring/application.rb in redis_ring-0.1.2

- old
+ new

@@ -9,10 +9,11 @@ @process_manager = ProcessManager.new @http_client = HttpClient.new @master_rpc = MasterRPC.new(http_client) @slave_rpc = SlaveRPC.new(http_client) @node_provider = NodeProvider.new(slave_rpc) - @zookeeper_connection = ZookeeperConnection.new(config.host_name, + @zookeeper_connection = ZookeeperConnection.new(config.cluster_name, + config.host_name, config.base_port, config.zookeeper_address) @master = Master.new(zookeeper_connection, config.ring_size, node_provider) @slave = Slave.new(configuration, master_rpc, process_manager) @zookeeper_observer = ZookeeperObserver.new(zookeeper_connection, master, slave)