Skip to content

Commit f402441

Browse files
committed
increase busy_timeout for checkpoint connection
1 parent 8d80077 commit f402441

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libsql-server/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ where
383383
}
384384
retry = match connection_maker.untracked().await {
385385
Ok(conn) => {
386+
conn.with_raw(|c| c.busy_timeout(std::time::Duration::from_secs(5)))?;
386387
if let Err(e) = conn.vacuum_if_needed().await {
387388
tracing::warn!("vacuum failed: {}", e);
388389
}

0 commit comments

Comments
 (0)