Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit 1493806

Browse files
authored
Fix borrowed mut bug (#807)
1 parent 10ea76e commit 1493806

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

mutiny-core/src/node.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,9 @@ impl<S: MutinyStorage> Node<S> {
555555
let retry_stop = stop.clone();
556556
let retry_chain_monitor = chain_monitor.clone();
557557
utils::spawn(async move {
558+
// sleep 3 seconds before checking, we won't have any pending updates on startup
559+
sleep(3_000).await;
560+
558561
loop {
559562
if retry_stop.load(Ordering::Relaxed) {
560563
break;

0 commit comments

Comments
 (0)