Invidious is an alternative front-end to YouTube
Shards: Update database dependencies
Samantaz Fox711d52d47fcf
diff --git a/shard.lock b/shard.lockindex 397bd8bc..1f609631 100644--- a/shard.lock+++ b/shard.lock@@ -14,7 +14,7 @@ shards:db:git: https://github.com/crystal-lang/crystal-db.git- version: 0.10.1+ version: 0.13.1exception_page:git: https://github.com/crystal-loot/exception_page.git@@ -30,7 +30,7 @@ shards:pg:git: https://github.com/will/crystal-pg.git- version: 0.24.0+ version: 0.28.0protodec:git: https://github.com/iv-org/protodec.git@@ -46,5 +46,5 @@ shards:sqlite3:git: https://github.com/crystal-lang/crystal-sqlite3.git- version: 0.18.0+ version: 0.21.0diff --git a/shard.yml b/shard.ymlindex 367f7c73..e0e34c0c 100644--- a/shard.yml+++ b/shard.yml@@ -12,10 +12,10 @@ targets:dependencies:pg:github: will/crystal-pg- version: ~> 0.24.0+ version: ~> 0.28.0sqlite3:github: crystal-lang/crystal-sqlite3- version: ~> 0.18.0+ version: ~> 0.21.0kemal:github: kemalcr/kemalversion: ~> 1.1.2diff --git a/src/invidious/yt_backend/connection_pool.cr b/src/invidious/yt_backend/connection_pool.crindex ca612083..14cc2d47 100644--- a/src/invidious/yt_backend/connection_pool.cr+++ b/src/invidious/yt_backend/connection_pool.cr@@ -44,7 +44,14 @@ struct YoutubeConnectionPoolendprivate 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+ options = DB::Pool::Options.new(+ initial_pool_size: 0,+ max_pool_size: capacity,+ max_idle_pool_size: capacity,+ checkout_timeout: timeout+ )++ DB::Pool(HTTP::Client).new(options) doconn = HTTP::Client.new(url)conn.family = CONFIG.force_resolveconn.family = Socket::Family::INET if conn.family == Socket::Family::UNSPEC