Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Artemka374 committed Aug 28, 2024
1 parent ecb5a8c commit e6ec914
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions core/node/external_proof_integration_api/src/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ impl Processor {
&self
.blob_store
.get::<L1BatchProofForL1>((l1_batch_number, payload.0.protocol_version))
.await
.map_err(|_| ProcessorError::ProofWasPurged)?,
.await?,
)?;

if serialized_proof != expected_proof {
Expand Down Expand Up @@ -184,13 +183,8 @@ impl Processor {
.blob_store
.get(l1_batch_number)
.await
.map_err(ProcessorError::ObjectStore)
.map_err(ProcessorError::ProofWasPurged)?;
let merkle_paths: WitnessInputMerklePaths = self
.blob_store
.get(l1_batch_number)
.await
.map_err(ProcessorError::ProofWasPurged)?;
.map_err(ProcessorError::ObjectStore)?;
let merkle_paths: WitnessInputMerklePaths = self.blob_store.get(l1_batch_number).await?;

// Acquire connection after interacting with GCP, to avoid holding the connection for too long.
let mut conn = self.pool.connection().await.map_err(ProcessorError::Dal)?;
Expand Down

0 comments on commit e6ec914

Please sign in to comment.