diff --git a/src/task_monitor/tasks/delete_identities.rs b/src/task_monitor/tasks/delete_identities.rs index 59ff2adb..3737bb47 100644 --- a/src/task_monitor/tasks/delete_identities.rs +++ b/src/task_monitor/tasks/delete_identities.rs @@ -60,6 +60,8 @@ pub async fn delete_identities(app: Arc, wake_up_notify: Arc) -> an // Remove the previous commitments from the deletions table app.database.remove_deletions(&previous_commitments).await?; wake_up_notify.notify_one(); + } else { + tokio::time::sleep(tokio::time::Duration::from_secs(5)).await; } } }