Skip to content

Commit

Permalink
add sleep time if deletions < min_deletion_batch_size
Browse files Browse the repository at this point in the history
  • Loading branch information
0xKitsune committed Apr 13, 2024
1 parent 9a78643 commit 3763145
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/task_monitor/tasks/delete_identities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ async fn delete_identities(
// Remove the previous commitments from the deletions table
database.remove_deletions(previous_commitments).await?;
wake_up_notify.notify_one();
} else {
tokio::time::sleep(tokio::time::Duration::from_secs(5)).await;
}
}
}

0 comments on commit 3763145

Please sign in to comment.