File tree Expand file tree Collapse file tree 2 files changed +19
-11
lines changed Expand file tree Collapse file tree 2 files changed +19
-11
lines changed Original file line number Diff line number Diff line change @@ -303,7 +303,11 @@ async fn run_indexer_queries(
303303 let start_time = Instant :: now ( ) ;
304304 // URL checked: ref df8e647b-1e6e-422a-8846-dc9ee7e0dcc2
305305 let deployment_url = url. join ( & format ! ( "subgraphs/id/{deployment}" ) ) . unwrap ( ) ;
306- let auth = IndexerAuth :: Paid ( & receipt, ctx. attestation_domain , ctx. legacy_attestation_domain ) ;
306+ let auth = IndexerAuth :: Paid (
307+ & receipt,
308+ ctx. attestation_domain ,
309+ ctx. legacy_attestation_domain ,
310+ ) ;
307311 let result = indexer_client
308312 . query_indexer ( deployment_url, auth, & indexer_query)
309313 . in_current_span ( )
@@ -695,7 +699,11 @@ pub async fn handle_indexer_query(
695699 . url
696700 . join ( & format ! ( "subgraphs/id/{deployment}" ) )
697701 . unwrap ( ) ;
698- let indexer_auth = IndexerAuth :: Paid ( & receipt, ctx. attestation_domain , ctx. legacy_attestation_domain ) ;
702+ let indexer_auth = IndexerAuth :: Paid (
703+ & receipt,
704+ ctx. attestation_domain ,
705+ ctx. legacy_attestation_domain ,
706+ ) ;
699707
700708 let indexer_start_time = Instant :: now ( ) ;
701709 let result = ctx
Original file line number Diff line number Diff line change @@ -123,16 +123,16 @@ impl IndexerClient {
123123 & allocation,
124124 query,
125125 & original_response,
126+ ) && let Err ( err) = attestation:: verify (
127+ attestation_domain,
128+ attestation,
129+ & allocation,
130+ query,
131+ & original_response,
126132 ) {
127- if let Err ( err) = attestation:: verify (
128- attestation_domain,
129- attestation,
130- & allocation,
131- query,
132- & original_response,
133- ) {
134- return Err ( BadResponse ( format ! ( "bad attestation: {legacy_err} - {err}" ) ) ) ;
135- }
133+ return Err ( BadResponse ( format ! (
134+ "bad attestation: {legacy_err} - {err}"
135+ ) ) ) ;
136136 }
137137 }
138138 None => {
You can’t perform that action at this time.
0 commit comments