Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mutianf committed Mar 4, 2021
1 parent 514d07c commit 9064e26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -117,7 +117,7 @@ public boolean laxAcquire(long permits) {
}
}

// Give out permits as long as there are more currentPermits than the max of (limit, permits).
// Give out permits as long as currentPermits is greater or equal to max of (limit, permits).
// currentPermits could be negative after the permits are given out, which marks how many
// permits are owed.
synchronized (updateLock) {
Expand Down
Expand Up @@ -78,7 +78,7 @@ public boolean laxAcquire(long permits) {

long toAcquire;
synchronized (updateLock) {
// Give out permits as long as there are more currentPermits than the max of (limit, permits).
// Give out permits as long as currentPermits is greater or equal to max of (limit, permits).
// currentPermits could be negative after the permits are given out, which marks how many
// permits are owed.
toAcquire = permits > limit ? limit : permits;
Expand Down

0 comments on commit 9064e26

Please sign in to comment.