Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
zhztheplayer committed Aug 7, 2024
1 parent 0df063d commit e5a2912
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ public long borrow(long size) {
long overSize = (long) (ratio * majorSize);
long overAcquired = overTarget.borrow(overSize);
Preconditions.checkState(overAcquired == overTarget.usedBytes());
long releasedOverSize = overTarget.repay(overSize);
Preconditions.checkState(releasedOverSize == overSize);
long releasedOverSize = overTarget.repay(overAcquired);
Preconditions.checkState(releasedOverSize == overAcquired);
Preconditions.checkState(overTarget.usedBytes() == 0);
return granted;
}
Expand Down

0 comments on commit e5a2912

Please sign in to comment.