Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Commit

Permalink
Fix TooManyRequestsWaiter
Browse files Browse the repository at this point in the history
  • Loading branch information
hitrov committed Apr 18, 2023
1 parent da6da3b commit 1a655bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TooManyRequestsWaiter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ class TooManyRequestsWaiter implements TooManyRequestsWaiterInterface

public function __construct(int $waitTime)
{
$this->waitSeconds = $waitTime;
if ($this->fileExists()) {
return;
}

$this->waitSeconds = $waitTime;
file_put_contents($this->getFilename(), '');
}

Expand Down

0 comments on commit 1a655bf

Please sign in to comment.