Skip to content

Commit

Permalink
Reduce max_connections in SqlitePool from 10 to 2 for geph5-client da…
Browse files Browse the repository at this point in the history
…tabase config
  • Loading branch information
nullchinchilla committed Sep 11, 2024
1 parent b396578 commit ab2f8e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion binaries/geph5-client/src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ static DATABASE: CtxField<SqlitePool> = |ctx| {
smol::future::block_on(async move {
let pool = PoolOptions::new()
.min_connections(1)
.max_connections(10)
.max_connections(2)
.max_lifetime(None)
.idle_timeout(None)
.connect_lazy_with(options);
Expand Down

0 comments on commit ab2f8e8

Please sign in to comment.