未验证 提交 cadd9661 编写于 作者: E eileencodes

Remove unused argument

This was leftover in debugging we did to support `shard` in
`connected_to`. We don't need this because `with_shard` already has
access to `connection_specification_name` because they are in the same
class.
上级 03d32ca2
......@@ -157,7 +157,7 @@ def connected_to(database: nil, role: nil, shard: nil, prevent_writes: false, &b
with_handler(role, &blk)
elsif shard
with_shard(connection_specification_name, shard, role || current_role, prevent_writes, &blk)
with_shard(shard, role || current_role, prevent_writes, &blk)
elsif role
with_role(role, prevent_writes, &blk)
else
......@@ -303,7 +303,7 @@ def with_role(role, prevent_writes, &blk)
end
end
def with_shard(connection_specification_name, pool_key, role, prevent_writes)
def with_shard(pool_key, role, prevent_writes)
old_pool_key = current_pool_key
with_role(role, prevent_writes) do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册