Skip to content

Commit

Permalink
resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
maminrayej committed Sep 8, 2023
1 parent 199b52f commit 84f5eea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio/src/sync/semaphore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ use std::sync::Arc;
/// interval.tick().await;
///
/// let cap = rate - sem.available_permits();
/// sem.add_permits(std::cmp::min(cap, 1));
/// sem.add_permits(cap.min(1));
/// }
/// }
/// });
Expand Down

0 comments on commit 84f5eea

Please sign in to comment.