Skip to content

Commit 333e26f

Browse files
author
Mohammed Karim
committed
Updated some comments.
1 parent b5c5a94 commit 333e26f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

system/Throttle/Throttler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function check(string $key, int $capacity, int $seconds, int $cost = 1):
155155
// Number of tokens to add back per second
156156
$rate = $capacity / $seconds;
157157

158-
// We must have a minimum wait of 1 second for a new token
158+
// We must have a minimum wait of 1 second for a new token.
159159
// Primarily stored to allow devs to report back to users.
160160
$this->tokenTime = max(1, $rate);
161161

@@ -165,7 +165,7 @@ public function check(string $key, int $capacity, int $seconds, int $cost = 1):
165165
$tokens += $rate * $elapsed;
166166
$tokens = $tokens > $capacity ? $capacity : $tokens;
167167

168-
// If $tokens > 0, then we are save to perform the action, but
168+
// If $tokens > 0, then we are safe to perform the action, but
169169
// we need to decrement the number of available tokens.
170170
$response = false;
171171

0 commit comments

Comments
 (0)