Fix clippy errors

This commit is contained in:
Konstantin Knizhnik
2021-10-07 18:03:51 +03:00
parent 77d352400e
commit 20e7c0d76a
2 changed files with 3 additions and 3 deletions

View File

@@ -584,10 +584,10 @@ impl InMemoryLayer {
inner.page_versions.iter(),
inner.segsizes.clone(),
)?;
return Ok(Arc::new(delta_layer));
Ok(Arc::new(delta_layer));
} else {
let image_layer = ImageLayer::create_from_src(self.conf, timeline, self, end_lsn)?;
return Ok(Arc::new(image_layer));
Ok(Arc::new(image_layer));
}
}
}

View File

@@ -37,7 +37,7 @@ pub mod defaults {
pub const DEFAULT_CHECKPOINT_PERIOD: Duration = Duration::from_secs(1);
pub const DEFAULT_GC_HORIZON: u64 = 64u64 * 1024 * 1024 * 1024;
pub const DEFAULT_GC_PERIOD: Duration = Duration::from_secs(10000);
pub const DEFAULT_GC_PERIOD: Duration = Duration::from_secs(1);
pub const DEFAULT_SUPERUSER: &str = "zenith_admin";
pub const DEFAULT_RELISH_STORAGE_MAX_CONCURRENT_SYNC_LIMITS: usize = 100;