Skip to content

Commit

Permalink
fix: downgrade deadpool so it stays on tokio 0.2
Browse files Browse the repository at this point in the history
needed for its timer usage (when enabling connection timeouts)

and set a default connection timeout

Closes #977, #976
  • Loading branch information
pjenvey committed Jan 21, 2021
1 parent 0101eac commit 99975ef
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
15 changes: 8 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ bytes = "1.0"
cadence = "0.23"
chrono = "0.4"
config = "0.10"
deadpool = "0.7"
# Pin to 0.5 for now, to keep it under tokio 0.2 (issue977)
deadpool = "0.5"
diesel = { version = "1.4", features = ["mysql", "r2d2"] }
diesel_logger = "0.1.1"
diesel_migrations = { version = "1.4.0", features = ["mysql"] }
Expand Down
1 change: 1 addition & 0 deletions src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ impl Settings {
s.set_default("host", "127.0.0.1")?;
s.set_default("human_logs", false)?;
#[cfg(test)]
s.set_default("database_pool_connection_timeout", Some(30))?;
s.set_default("database_use_test_transactions", false)?;
s.set_default("master_secret", "")?;
s.set_default::<Option<String>>("tokenserver_database_url", None)?;
Expand Down

0 comments on commit 99975ef

Please sign in to comment.