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

Remove unnecessary `compact`

Looking at the history this is holdover from the pre-pool manager and
changes made by Shopify. The tests pass without it and we've had enough
changes that it doesn't appear necessary anymore.
Co-authored-by: NJohn Crepezzi <john.crepezzi@gmail.com>
上级 a22df786
...@@ -1027,7 +1027,7 @@ def connection_pool_names # :nodoc: ...@@ -1027,7 +1027,7 @@ def connection_pool_names # :nodoc:
end end
def connection_pool_list def connection_pool_list
owner_to_pool_manager.values.compact.flat_map { |m| m.pool_configs.map(&:pool) } owner_to_pool_manager.values.flat_map { |m| m.pool_configs.map(&:pool) }
end end
alias :connection_pools :connection_pool_list alias :connection_pools :connection_pool_list
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册