Add 10 second busy timeout

Fixes #814
This commit is contained in:
Cesar Rodas
2025-06-15 20:44:44 -03:00
parent 6aae5ab431
commit 06ae9e42b3

View File

@@ -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`