Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Mar 20, 2024
1 parent ce93d24 commit 6258313
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,9 @@ async fn main_internal() -> Result<(), PaymentError> {
&conn.clone().unwrap(),
None,
1,
cleanup_options.chain_id,
cleanup_options.chain_id.ok_or(err_custom_create!(
"Chain id not specified for stuck tx removal"
))?,
)
.await
.map_err(err_from!())?;
Expand Down Expand Up @@ -988,7 +990,9 @@ async fn main_internal() -> Result<(), PaymentError> {
&conn.clone().unwrap(),
None,
1,
cleanup_options.chain_id,
cleanup_options.chain_id.ok_or(err_custom_create!(
"Chain id not specified for unsafe tx removal"
))?,
)
.await
.map_err(err_from!())?;
Expand Down
2 changes: 1 addition & 1 deletion src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ pub struct CleanupOptions {
pub remove_tx_unsafe: bool,

#[structopt(long = "chain-id", help = "Chain id to use")]
pub chain_id: i64,
pub chain_id: Option<i64>,
}

#[derive(StructOpt)]
Expand Down

0 comments on commit 6258313

Please sign in to comment.