Skip to content

Commit 35d4af7

Browse files
committed
make quote provider default to debug url
1 parent d0739c9 commit 35d4af7

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

crates/op-rbuilder/src/flashtestations/args.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,7 @@ pub struct FlashtestationsArgs {
3434
// Remote url for attestations
3535
#[arg(
3636
long = "flashtestations.quote-provider",
37-
env = "FLASHTESTATIONS_QUOTE_PROVIDER",
38-
required_if_eq_all([
39-
("flashtestations_enabled", "true"),
40-
("debug", "false")
41-
])
37+
env = "FLASHTESTATIONS_QUOTE_PROVIDER"
4238
)]
4339
pub quote_provider: Option<String>,
4440

crates/op-rbuilder/src/flashtestations/attestation.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ impl AttestationProvider for RemoteAttestationProvider {
4747
}
4848
}
4949

50+
#[allow(clippy::if_same_then_else)]
5051
pub fn get_attestation_provider(
5152
config: AttestationConfig,
5253
) -> Box<dyn AttestationProvider + Send + Sync> {
@@ -60,7 +61,7 @@ pub fn get_attestation_provider(
6061
Box::new(RemoteAttestationProvider::new(
6162
config
6263
.quote_provider
63-
.expect("remote quote provider is required"),
64+
.unwrap_or(DEBUG_QUOTE_SERVICE_URL.to_string()), // TODO: remove this once we have a real quote provider
6465
))
6566
}
6667
}

0 commit comments

Comments
 (0)