Skip to content

Commit e0c9df8

Browse files
committed
durability: Default local durability sync interval to 50ms
Cherry-picked from #4404 Better default for confirmed reads (which are the default since #4390).
1 parent c37b791 commit e0c9df8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/durability/src/imp/local.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub use spacetimedb_commitlog::repo::{OnNewSegmentFn, SizeOnDisk};
3434
pub struct Options {
3535
/// Periodically flush and sync the log this often.
3636
///
37-
/// Default: 500ms
37+
/// Default: 50ms
3838
pub sync_interval: Duration,
3939
/// [`Commitlog`] configuration.
4040
pub commitlog: spacetimedb_commitlog::Options,
@@ -43,7 +43,7 @@ pub struct Options {
4343
impl Default for Options {
4444
fn default() -> Self {
4545
Self {
46-
sync_interval: Duration::from_millis(500),
46+
sync_interval: Duration::from_millis(50),
4747
commitlog: Default::default(),
4848
}
4949
}

0 commit comments

Comments
 (0)