mirror of
https://github.com/iv-org/invidious.git
synced 2025-04-27 15:30:35 +05:30
Remove redundant pool.release
pool.checkout(&block) already ensures that the checked out item will be released back into the pool
This commit is contained in:
parent
739c35050f
commit
4fd6f797e8
@ -46,8 +46,6 @@ module Invidious::ConnectionPool
|
|||||||
# Prevent broken client from being checked back into the pool
|
# Prevent broken client from being checked back into the pool
|
||||||
http_client.close
|
http_client.close
|
||||||
raise ConnectionPool::Error.new(ex.message, cause: ex)
|
raise ConnectionPool::Error.new(ex.message, cause: ex)
|
||||||
ensure
|
|
||||||
pool.release(http_client)
|
|
||||||
end
|
end
|
||||||
rescue ex : DB::PoolTimeout
|
rescue ex : DB::PoolTimeout
|
||||||
# Failed to checkout a client
|
# Failed to checkout a client
|
||||||
|
Loading…
x
Reference in New Issue
Block a user