Skip to content

Commit 0bc453a

Browse files
authored
Change default server lifetime and bump bb8 version to use LIFO correctly (#462)
Change default server lifetime and idle timeouts and bump bb8 version to use LIFO correctly
1 parent b67c33b commit 0bc453a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Cargo.lock

+3-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ edition = "2021"
88
tokio = { version = "1", features = ["full"] }
99
bytes = "1"
1010
md-5 = "0.10"
11-
bb8 = { git = "https://github.com/djc/bb8.git", rev = "ad653e0" } # https://github.com/djc/bb8/commit/ad653e021607eb1f90ed6ce554d1766920308ffa
11+
bb8 = "0.8.1"
1212
async-trait = "0.1"
1313
rand = "0.8"
1414
chrono = "0.4"

src/config.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ impl General {
329329
}
330330

331331
pub fn default_server_lifetime() -> u64 {
332-
1000 * 60 * 60 * 24 // 24 hours
332+
1000 * 60 * 60 // 1 hour
333333
}
334334

335335
pub fn default_connect_timeout() -> u64 {
@@ -352,7 +352,7 @@ impl General {
352352
}
353353

354354
pub fn default_idle_timeout() -> u64 {
355-
60000 // 10 minutes
355+
60000 // 1 minute
356356
}
357357

358358
pub fn default_shutdown_timeout() -> u64 {

0 commit comments

Comments
 (0)