Skip to content

Commit

Permalink
fixup! Address code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pbeza committed Aug 21, 2024
1 parent 1795e1c commit 2476f18
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions core/lib/dal/src/tee_proof_generation_dal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ impl TeeProofGenerationDal<'_, '_> {
min_batch_condition = min_batch_condition
);

let query = sqlx::query!(
&query_str,
&tee_type.to_string(),
TeeVerifierInputProducerJobStatus::Successful as TeeVerifierInputProducerJobStatus,
&processing_timeout,
);
let query = sqlx::query_as(&query_str)
.bind(&tee_type.to_string())
.bind(
TeeVerifierInputProducerJobStatus::Successful as TeeVerifierInputProducerJobStatus,
)
.bind(&processing_timeout);

let batch_number = Instrumented::new("lock_batch_for_proving")
.with_arg("tee_type", &tee_type)
Expand Down Expand Up @@ -104,7 +104,7 @@ impl TeeProofGenerationDal<'_, '_> {
tee_type.to_string()
)
.instrument("unlock_batch")
.with_arg("l1_batch_number", &l1_batch_number)
.with_arg("l1_batch_number", &batch_number)
.with_arg("tee_type", &tee_type)
.execute(self.storage)
.await?;
Expand Down

0 comments on commit 2476f18

Please sign in to comment.