Skip to content

Commit

Permalink
In memory db doesn't close connections (#1663)
Browse files Browse the repository at this point in the history
  • Loading branch information
nieznanysprawiciel authored Nov 2, 2021
1 parent 3962bc7 commit 7936457
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/persistence/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ impl DbExecutor {

let inner = match pool_size {
// Sqlite doesn't handle connections from multiple threads well.
Some(pool_size) => builder.max_size(pool_size).build(manager)?,
Some(pool_size) => builder
.max_size(pool_size)
.idle_timeout(None)
.max_lifetime(None)
.build(manager)?,
None => builder.build(manager)?,
};

Expand Down

0 comments on commit 7936457

Please sign in to comment.