lib/makara/pool.rb
# Get the next non-blacklisted connection. If the proxy is setup
# to be sticky, provide back the current connection assuming it is
# not blacklisted.
Get the next non-blacklisted connection. If the proxy is setup
to be sticky, provide back the current connection assuming it is
not blacklisted.
Get the next non - blacklisted connection . If the proxy is setup to be sticky provide back the current connection assuming it is not blacklisted .
def next
      if @proxy.sticky && @strategy.current
        @strategy.current
      else
        @strategy.next
      end
    end
def next if @proxy . sticky && @strategy . current @strategy . current else @strategy . next end end
Get the next non-blacklisted connection.
Get the next non - blacklisted connection .