Skip to content

Commit fece78f

Browse files
committed
Fix --extra-rpcs option being non-optional
1 parent 9c379ef commit fece78f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ async fn main() -> std::io::Result<()> {
243243
Some((state_commitment, tx_commitment)),
244244
Some(config.default_sub_account_id),
245245
config.skip_tx_preflight,
246-
config.extra_rpcs.split(",").collect(),
246+
config.extra_rpcs.unwrap_or_default().split(",").collect(),
247247
)
248248
.await;
249249

@@ -415,7 +415,7 @@ struct GatewayConfig {
415415
skip_tx_preflight: bool,
416416
/// extra solana RPC urls for improved Tx broadcast
417417
#[argh(option)]
418-
extra_rpcs: String,
418+
extra_rpcs: Option<String>,
419419
/// enable debug logging
420420
#[argh(switch)]
421421
verbose: bool,

0 commit comments

Comments
 (0)