File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ module Invidious::ConnectionPool
72
72
response = yield http_client
73
73
rescue ex : DB ::PoolTimeout
74
74
# Failed to checkout a client
75
- raise ConnectionPool ::Error .new(ex.message, cause: ex )
75
+ raise ConnectionPool ::PoolCheckoutError .new(ex.message)
76
76
rescue ex
77
77
# An error occurred with the client itself.
78
78
# Delete the client from the pool and close the connection
@@ -131,6 +131,10 @@ module Invidious::ConnectionPool
131
131
class Error < Exception
132
132
end
133
133
134
+ # Raised when the pool failed to get a client in time
135
+ class PoolCheckoutError < Error
136
+ end
137
+
134
138
# Mapping of subdomain => Invidious::ConnectionPool::Pool
135
139
# This is needed as we may need to access arbitrary subdomains of ytimg
136
140
private YTIMG_POOLS = {} of String => ConnectionPool ::Pool
You can’t perform that action at this time.
0 commit comments