Skip to content

Commit

Permalink
Fix borrowed mut bug
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Oct 25, 2023
1 parent 10ea76e commit 3289e01
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mutiny-core/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,9 @@ impl<S: MutinyStorage> Node<S> {
let retry_stop = stop.clone();
let retry_chain_monitor = chain_monitor.clone();
utils::spawn(async move {
// sleep 3 seconds before checking, we won't have any pending updates on startup
sleep(3_000).await;

loop {
if retry_stop.load(Ordering::Relaxed) {
break;
Expand Down

0 comments on commit 3289e01

Please sign in to comment.