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 b9d9486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio/src/sync/semaphore.rs
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 b9d9486

Please sign in to comment.