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 7593cb4 commit e423313Copy full SHA for e423313
src/ShipStation.php
@@ -194,7 +194,7 @@ public function sleepIfRateLimited(Response $response)
194
$this->remainingRequests = (int) $response->getHeader('X-Rate-Limit-Remaining')[0];
195
$this->secondsUntilReset = (int) $response->getHeader('X-Rate-Limit-Reset')[0];
196
197
- if (($this->secondsUntilReset / $this->remainingRequests) > 1.5 || $this->isRateLimited()) {
+ if ($this->isRateLimited() || ($this->secondsUntilReset / $this->remainingRequests) > 1.5) {
198
sleep(1.5);
199
}
200
0 commit comments