File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
crates/op-rbuilder/src/flashtestations Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,7 @@ pub struct FlashtestationsArgs {
34
34
// Remote url for attestations
35
35
#[ arg(
36
36
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"
42
38
) ]
43
39
pub quote_provider : Option < String > ,
44
40
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ impl AttestationProvider for RemoteAttestationProvider {
47
47
}
48
48
}
49
49
50
+ #[ allow( clippy:: if_same_then_else) ]
50
51
pub fn get_attestation_provider (
51
52
config : AttestationConfig ,
52
53
) -> Box < dyn AttestationProvider + Send + Sync > {
@@ -60,7 +61,7 @@ pub fn get_attestation_provider(
60
61
Box :: new ( RemoteAttestationProvider :: new (
61
62
config
62
63
. 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
64
65
) )
65
66
}
66
67
}
You can’t perform that action at this time.
0 commit comments