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:
syeopite
2024-11-12 08:57:55 -08:00
parent 2f52ebc7e3
commit 65e6929037

View File

@@ -46,8 +46,6 @@ module Invidious::ConnectionPool
# Prevent broken client from being checked back into the pool
http_client.close
raise ConnectionPool::Error.new(ex.message, cause: ex)
ensure
pool.release(http_client)
end
rescue ex : DB::PoolTimeout
# Failed to checkout a client