Skip to content

Commit

Permalink
Loop without delay (#704)
Browse files Browse the repository at this point in the history
* fixed loop without delay
  • Loading branch information
0xForerunner authored Feb 21, 2024
1 parent 86ce0f8 commit e6fba00
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 @@ -60,6 +60,8 @@ pub async fn delete_identities(app: Arc<App>, wake_up_notify: Arc<Notify>) -> 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;
}
}
}

0 comments on commit e6fba00

Please sign in to comment.