improvement: reduce lifetime of database connections

This commit is contained in:
Greg Heartsfield 2022-12-22 13:01:12 -06:00
parent 5917bc53b2
commit d31bbda087

View File

@ -84,7 +84,7 @@ pub fn build_pool(
.test_on_check_out(true) // no noticeable performance hit
.min_idle(Some(min_size))
.max_size(max_size)
.max_lifetime(Some(Duration::from_secs(60)))
.max_lifetime(Some(Duration::from_secs(30)))
.build(manager)
.unwrap();
info!(