Co-authored-by: Samantaz Fox <coding@samantaz.fr>
This commit is contained in:
syeopite 2024-06-16 15:18:21 +00:00 committed by Fijxu
parent 7977dc3c8b
commit dc575ee798
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4

View file

@ -34,7 +34,7 @@ struct YoutubeConnectionPool
private def build_pool
DB::Pool(HTTP::Client).new(initial_pool_size: 0, max_pool_size: capacity, max_idle_pool_size: capacity, checkout_timeout: timeout) do
conn = make_client(url, force_resolve = true)
conn = make_client(url, force_resolve: true)
conn.family = Socket::Family::INET if conn.family == Socket::Family::UNSPEC
conn
end