Skip to content

Commit eadc2f2

Browse files
committed
refactor(script/bin): panic instead of defaults
1 parent eb6db6d commit eadc2f2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

script/bin/operator.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -491,15 +491,15 @@ where
491491
.skip_simulation(true)
492492
.cycle_limit(
493493
env::var("PROVER_CYCLE_LIMIT")
494-
.ok()
495-
.and_then(|s| s.parse().ok())
496-
.unwrap_or(10_000_000_000),
494+
.expect("PROVER_CYCLE_LIMIT not set")
495+
.parse::<u64>()
496+
.expect("Failed to parse PROVER_CYCLE_LIMIT"),
497497
)
498498
.gas_limit(
499499
env::var("PROVER_GAS_LIMIT")
500-
.ok()
501-
.and_then(|s| s.parse().ok())
502-
.unwrap_or(10_000_000_000),
500+
.expect("PROVER_GAS_LIMIT not set")
501+
.parse::<u64>()
502+
.expect("Failed to parse PROVER_GAS_LIMIT"),
503503
)
504504
.min_auction_period(10)
505505
.plonk()

0 commit comments

Comments
 (0)