summaryrefslogtreecommitdiffstats
path: root/src/remake/local.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/remake/local.rs')
-rw-r--r--src/remake/local.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/remake/local.rs b/src/remake/local.rs
index fd7c567..60f7184 100644
--- a/src/remake/local.rs
+++ b/src/remake/local.rs
@@ -379,6 +379,11 @@ impl RemakeState {
self.lock().quarantine.push(quarantined);
}
+ /// How many old epochs are archived.
+ pub(crate) fn archived_count(&self) -> usize {
+ self.lock().archive.len()
+ }
+
pub(crate) fn archived_epochs(&self) -> Vec<ArchivedEpoch> {
self.lock()
.archive