expire tasks in 'ta gc'

This commit is contained in:
Dustin J. Mitchell
2022-03-06 22:23:27 +00:00
parent 919e91fd13
commit 3cdc13aa37

View File

@@ -4,6 +4,8 @@ use termcolor::WriteColor;
pub(crate) fn execute<W: WriteColor>(w: &mut W, replica: &mut Replica) -> Result<(), crate::Error> {
log::debug!("rebuilding working set");
replica.rebuild_working_set(true)?;
log::debug!("expiring old tasks");
replica.expire_tasks()?;
writeln!(w, "garbage collected.")?;
Ok(())
}