Preventively fixed other race conditions

This commit is contained in:
Igor Katson 2023-11-20 10:14:08 +00:00
parent 34ee9d9bd9
commit 2695a8ec26
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
3 changed files with 73 additions and 53 deletions

View file

@ -224,7 +224,7 @@ pub struct LivePeerState {
pub i_am_choked: bool,
pub peer_interested: bool,
// This is used to limit the number of requests we send to a peer at a time.
// This is used to limit the number of chunk requests we send to a peer at a time.
pub requests_sem: Arc<Semaphore>,
// This is used to unpause processes after we were choked.