lib/makara/proxy.rb
# use the config parser to generate a master and slave pool
use the config parser to generate a master and slave pool
use the config parser to generate a master and slave pool
def instantiate_connections
      @master_pool = Makara::Pool.new('master', self)
      @config_parser.master_configs.each do |master_config|
        @master_pool.add master_config do
          graceful_connection_for(master_config)
        end
      end
      @slave_pool = Makara::Pool.new('slave', self)
      @config_parser.slave_configs.each do |slave_config|
        @slave_pool.add slave_config do
          graceful_connection_for(slave_config)
        end
      end
    end
def instantiate_connections @master_pool = Makara :: Pool . new ( 'master' , self ) @config_parser . master_configs . each do | master_config | @master_pool . add master_config do graceful_connection_for ( master_config ) end end @slave_pool = Makara :: Pool . new ( 'slave' , self ) @config_parser . slave_configs . each do | slave_config | @slave_pool . add slave_config do graceful_connection_for ( slave_config ) end end end
use the config parser to generate a master and slave pool
use the config parser to generate a master and slave pool