class Redis::Cluster
def process(commands, &block)
def process(commands, &block) if commands.size == 1 && %w[unsubscribe punsubscribe].include?(commands.first.first.to_s.downcase) && commands.first.size == 1 # Node is indeterminate. We do just a best-effort try here. @node.process_all(commands, &block) else node = assign_node(commands.first) try_send(node, :process, commands, &block) end end