diff --git a/crates/cdk-sqlite/src/common.rs b/crates/cdk-sqlite/src/common.rs index 1071fbee..e04a00de 100644 --- a/crates/cdk-sqlite/src/common.rs +++ b/crates/cdk-sqlite/src/common.rs @@ -47,6 +47,8 @@ impl ResourceManager for SqliteConnectionManager { "#, )?; + conn.busy_timeout(Duration::from_secs(10))?; + Ok(conn) } } @@ -81,7 +83,7 @@ pub fn create_sqlite_pool( ) }; - Pool::new(config, max_size, Duration::from_secs(5)) + Pool::new(config, max_size, Duration::from_secs(10)) } /// Migrates the migration generated by `build.rs`