Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
emhane committed Jan 31, 2024
1 parent be59b39 commit 35e375e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/net/network/src/transactions/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1178,10 +1178,10 @@ where
break
}

*budget -= 1;
budget -= 1;
// If the budget is exhausted we manually yield back control to tokio. See
// `NetworkManager` for more context on the design pattern.
if *budget == 0 {
if budget == 0 {
break
}
}
Expand Down

0 comments on commit 35e375e

Please sign in to comment.