Skip to content

Commit

Permalink
Fix intervals between retries in Client API calls (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk authored Nov 7, 2024
1 parent ca4f27d commit ee90e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client/GRPC/BaseClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ private function call(string $method, object $arg, ContextInterface $ctx): objec
? $congestionInitialIntervalMs
: $initialIntervalMs;

$wait = $throttler->calculateSleepTime(failureCount: $attempt, initialInterval: $baseInterval);
$wait = $throttler->calculateSleepTime(failureCount: $attempt, initialInterval: $baseInterval) * 1000;

// wait till the next call
$this->usleep($wait);
Expand Down

0 comments on commit ee90e67

Please sign in to comment.