Skip to content

Commit

Permalink
Updated message to include limit amount
Browse files Browse the repository at this point in the history
  • Loading branch information
quentin.schmick committed Aug 2, 2022
1 parent f502782 commit df89046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ShipEngineClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ private static function incrementRequestCount(ShipEngineConfig $config) : void
$nextExpire = now()->seconds(0)->addMinute();

if ($count > $config->requestLimitPerMinute) {
throw new RateLimitExceededException(retryAfter: new DateInterval('PT1S'), message: 'Internal conifg API rate limit exceeded.');
throw new RateLimitExceededException(retryAfter: new DateInterval('PT1S'), message: 'Internal config API rate limit of ' . $config->requestLimitPerMinute . ' exceeded.');
}

Cache::put('shipengine.api-request.count', $count + 1, $nextExpire);
Expand Down

0 comments on commit df89046

Please sign in to comment.