mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2025-04-23 21:09:55 -04:00
improvement: reduce lifetime of database connections
This commit is contained in:
parent
5917bc53b2
commit
d31bbda087
@ -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!(
|
||||
|
Loading…
x
Reference in New Issue
Block a user