Per the connection_pool documentation, using ConnectionPool::Wrapper is not performant and has been replaced by with on a connection pool to obtain a connection. This PR is a rough-and-ready switch over to using the new ConnectionPool.new instead of the old, temporary ConnectionPool::Wrapper.new.
Per the connection_pool documentation, using
ConnectionPool::Wrapper
is not performant and has been replaced bywith
on a connection pool to obtain a connection. This PR is a rough-and-ready switch over to using the newConnectionPool.new
instead of the old, temporaryConnectionPool::Wrapper.new
.This may address some issues where redis connections are not being released: https://github.com/gottfrois/dashing-rails/issues/94, https://github.com/gottfrois/dashing-rails/issues/60.
Followed https://github.com/mperham/connection_pool#migrating-to-a-connection-pool to make the changes.