Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
pbeza committed Sep 6, 2024
1 parent b2488ee commit 98ddc69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/bin/zksync_tee_prover/src/tee_prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ impl Task for TeeProver {
.await?;

let mut retries = 1;
let mut backoff = config.initial_retry_backoff;
let mut backoff = config.initial_retry_backoff();
let mut observer = METRICS.job_waiting_time.start();

loop {
Expand All @@ -141,7 +141,7 @@ impl Task for TeeProver {
let need_to_sleep = match result {
Ok(batch_number) => {
retries = 1;
backoff = config.initial_retry_backoff;
backoff = config.initial_retry_backoff();
if let Some(batch_number) = batch_number {
observer.observe();
observer = METRICS.job_waiting_time.start();
Expand All @@ -162,7 +162,7 @@ impl Task for TeeProver {
retries += 1;
backoff = std::cmp::min(
backoff.mul_f32(config.retry_backoff_multiplier),
config.max_backoff,
config.max_backoff(),
);
true
}
Expand Down

0 comments on commit 98ddc69

Please sign in to comment.