8000 [RateLimiter] Remove Window::sleep() by Nyholm · Pull Request #38668 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[RateLimiter] Remove Window::sleep() #38668

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 22, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[RateLimiter] Remove Window::sleep()
  • Loading branch information
Nyholm committed Oct 21, 2020
commit ccbf7d5a06f7e4d1260a9b9cb2c0ef8a16224b2c
8 changes: 0 additions & 8 deletions src/Symfony/Component/RateLimiter/Window.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,4 @@ public function calculateTimeForTokens(int $tokens): int

return $cyclesRequired * $this->intervalInSeconds;
}

/**
* @internal
*/
public function __sleep(): array
{
return ['id', 'hitCount', 'intervalInSeconds', 'timer', 'maxSize'];
}
}
0