mirror of
https://github.com/mperham/connection_pool
synced 2023-03-27 23:22:21 -04:00
Remove deprecated #with_connection
.
This commit is contained in:
parent
c0eed147fa
commit
c19f3242b4
1 changed files with 0 additions and 10 deletions
|
@ -51,11 +51,6 @@ class ConnectionPool
|
|||
end
|
||||
end
|
||||
|
||||
def with_connection(&block)
|
||||
warn("ConnectionPool#with_connection is deprecated and will be removed in version 1.0. Upgrade your code to use ConnectionPool#with instead. (in #{caller[0]})")
|
||||
with(&block)
|
||||
end
|
||||
|
||||
def checkout
|
||||
stack = ::Thread.current[@key] ||= []
|
||||
|
||||
|
@ -91,11 +86,6 @@ class ConnectionPool
|
|||
@pool.checkin
|
||||
end
|
||||
|
||||
def with_connection(&block)
|
||||
warn("ConnectionPool::Wrapper#with_connection is deprecated and will be removed in version 1.0. Upgrade your code to use ConnectionPool::Wrapper#with instead. (in #{caller[0]})")
|
||||
with(&block)
|
||||
end
|
||||
|
||||
def respond_to?(id, *args)
|
||||
METHODS.include?(id) || @pool.with { |c| c.respond_to?(id, *args) }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue