Allow user to set an epoch margin for pruning

This commit is contained in:
Emilia Hane
2023-01-20 13:03:46 +01:00
parent d7fc24a9d5
commit 1812301c9c
6 changed files with 58 additions and 3 deletions

View File

@@ -201,6 +201,10 @@ impl Config {
pub fn create_data_dir(&self) -> Result<PathBuf, String> {
ensure_dir_exists(self.get_data_dir())
}
pub fn get_blob_prune_margin_epochs(&self) -> Option<u64> {
self.store.blob_prune_margin_epochs
}
}
/// Ensure that the directory at `path` exists, by creating it and all parents if necessary.