mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-14 06:59:07 -05: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
|
.test_on_check_out(true) // no noticeable performance hit
|
||||||
.min_idle(Some(min_size))
|
.min_idle(Some(min_size))
|
||||||
.max_size(max_size)
|
.max_size(max_size)
|
||||||
.max_lifetime(Some(Duration::from_secs(60)))
|
.max_lifetime(Some(Duration::from_secs(30)))
|
||||||
.build(manager)
|
.build(manager)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
info!(
|
info!(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user