Skip to content

Commit

Permalink
chore: adding no-op option to archiver (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
sagojez authored Sep 5, 2024
1 parent 4ec23e3 commit 9cf4c00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions integrationos-archiver/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pub enum Mode {
Dump,
DumpDelete,
Restore,
NoOp,
}

#[derive(Envconfig, Clone)]
Expand Down
1 change: 1 addition & 0 deletions integrationos-archiver/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ async fn main() -> Result<Unit> {
Mode::Restore => restore(config, &archives, &started, storage).await,
Mode::Dump => dump(config, &archives, &started, storage, database, false).await,
Mode::DumpDelete => dump(config, &archives, &started, storage, database, true).await,
Mode::NoOp => Ok(()),
}
}

Expand Down

0 comments on commit 9cf4c00

Please sign in to comment.