Skip to content

Commit e38e064

Browse files
authored
config/database_pools: Fix broken connection_timeout (#11186)
ehm... oops... 🤦‍♂️😅
1 parent affac62 commit e38e064

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config/database_pools.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ impl DatabasePools {
8686
.unwrap_or(DEFAULT_TCP_TIMEOUT);
8787

8888
let connection_timeout = var_parsed("DB_TIMEOUT")?
89-
.map(Duration::from_millis)
89+
.map(Duration::from_secs)
9090
.unwrap_or(DEFAULT_CONNECTION_TIMEOUT);
9191

9292
// `DB_TIMEOUT` currently configures both the connection timeout and

0 commit comments

Comments
 (0)