Skip to content

Commit 3e99a4c

Browse files
committed
Perform WAL checkpointing ten times per second
1 parent ad769a8 commit 3e99a4c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ members = [
99
]
1010

1111
[workspace.package]
12-
version = "0.34.3"
12+
version = "0.34.4"
1313

1414

1515
[workspace.lints.clippy]

opsqueue/src/db/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ impl DBPools {
256256
}
257257

258258
pub async fn periodically_checkpoint_wal(&self) {
259-
const EXPLICIT_WAL_CHECK_INTERVAL: Duration = Duration::from_secs(1);
259+
const EXPLICIT_WAL_CHECK_INTERVAL: Duration = Duration::from_millis(100);
260260
let mut interval = tokio::time::interval(EXPLICIT_WAL_CHECK_INTERVAL);
261261
loop {
262262
let _ = self.perform_explicit_wal_checkpoint().await;

0 commit comments

Comments
 (0)