We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 520bf28 commit f7da2b6Copy full SHA for f7da2b6
src/Symfony/Component/RateLimiter/Policy/SlidingWindow.php
@@ -100,11 +100,6 @@ public function getHitCount(): int
100
return (int) floor($this->hitCountForLastWindow * (1 - $percentOfCurrentTimeFrame) + $this->hitCount);
101
}
102
103
- public function getRetryAfter(): \DateTimeImmutable
104
- {
105
- return \DateTimeImmutable::createFromFormat('U.u', sprintf('%.6F', $this->windowEndAt));
106
- }
107
-
108
public function calculateTimeForTokens(int $maxSize, int $tokens): int
109
{
110
$remaining = $maxSize - $this->getHitCount();
0 commit comments