#[derive(Copy, Clone, Debug)]
pub struct LocalStorageConfig {
pub flush_attempt_threshold: usize,
pub flush_threshold: usize,
}
impl LocalStorageConfig {
#[must_use]
pub const fn default() -> Self {
Self {
flush_attempt_threshold: 32*1024,
flush_threshold: 1024*1024,
}
}
}
impl Default for LocalStorageConfig {
fn default() -> Self {
Self::default()
}
}