Skip to content

Commit

Permalink
fix(strategy): set classic as unimplemented!()
Browse files Browse the repository at this point in the history
  • Loading branch information
graelo committed Aug 18, 2022
1 parent 24aae41 commit 832f51e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/management/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ impl Catalog {
///
/// This is usually the most recent backup.
pub fn current(&self) -> Option<&Backup> {
self.backups.last()
match self.strategy {
Strategy::KeepMostRecent { .. } => self.backups.last(),
Strategy::Classic => unimplemented!(),
}
}

/// Simulate the compaction strategy: list the backup files to delete, and the ones to keep.
Expand Down
5 changes: 1 addition & 4 deletions src/management/compaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ impl Strategy {
}
}

Strategy::Classic => Plan {
disposable: backup_files,
retainable: backup_files,
},
Strategy::Classic => unimplemented!(),
}
}
}
Expand Down

0 comments on commit 832f51e

Please sign in to comment.