Skip to content

Commit

Permalink
updated dependencies for db_pools and sync_db_pools
Browse files Browse the repository at this point in the history
  • Loading branch information
Tilen Pintarič committed Jun 21, 2022
1 parent 6e5568a commit 3caece5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion contrib/db_pools/lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ features = ["tokio-runtime"]
optional = true

[dependencies.sqlx]
version = "0.5"
version = "0.6.0"
default-features = false
features = ["runtime-tokio-rustls"]
optional = true
Expand Down
2 changes: 1 addition & 1 deletion contrib/db_pools/lib/src/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ mod sqlx {

sqlx::pool::PoolOptions::new()
.max_connections(config.max_connections as u32)
.connect_timeout(Duration::from_secs(config.connect_timeout))
.acquire_timeout(Duration::from_secs(config.connect_timeout))
.idle_timeout(config.idle_timeout.map(Duration::from_secs))
.min_connections(config.min_connections.unwrap_or_default())
.connect_with(opts)
Expand Down
6 changes: 3 additions & 3 deletions contrib/sync_db_pools/lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ r2d2 = "0.8"
tokio = { version = "1.6.1", features = ["rt", "rt-multi-thread"] }
serde = { version = "1.0", features = ["derive"] }

diesel = { version = "1.0", default-features = false, optional = true }
diesel = { version = "2.0.0-rc.0", default-features = false, optional = true }

postgres = { version = "0.19", optional = true }
r2d2_postgres = { version = "0.18", optional = true }

rusqlite = { version = "0.25", optional = true }
r2d2_sqlite = { version = "0.18", optional = true }
rusqlite = { version = "0.27.0", optional = true }
r2d2_sqlite = { version = "0.20.0", optional = true }

memcache = { version = "0.15", optional = true }
r2d2-memcache = { version = "0.6", optional = true }
Expand Down

0 comments on commit 3caece5

Please sign in to comment.