Skip to content

Commit

Permalink
Explicitly yield in the swarm task
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-zero committed Aug 18, 2023
1 parent 37882c8 commit 7acce86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dht-cache/src/dht.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ pub fn dht_channel(
}
}
}
tokio::task::yield_now().await;
}
});

Expand Down

0 comments on commit 7acce86

Please sign in to comment.