Skip to content

Commit

Permalink
chore: make opts into flags
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusc93 committed Dec 12, 2024
1 parent 256b833 commit 1149a12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extensions/warp-ipfs/shuttle/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,17 @@ struct Opt {
ws_tls_private_key: Option<PathBuf>,

/// Enable GC to cleanup any unpinned or orphaned blocks
#[clap(long)]
enable_gc: bool,

/// Run GC at start
/// Note: its recommended not to use this if GC is enabled.
#[clap(long)]
run_gc_once: bool,

/// GC Duration in seconds on how often GC should run
/// Note: NOOP if `enable_gc` is false
#[clap(long)]
gc_duration: Option<u16>,
}

Expand Down

0 comments on commit 1149a12

Please sign in to comment.