Skip to content

Commit 93dc4a6

Browse files
authored
Update Retry.php
1 parent e13d1f4 commit 93dc4a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Retry/Retry.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ public function retry(Closure $closure, bool $idempotent)
8888
break;
8989
}
9090
$retryCount++;
91-
$this->retryDelay($retryCount, $this->backoffType($e));
9291
$lastException = $e;
92+
$delay = $this->retryDelay($retryCount, $this->backoffType($e))*1000; // in microseconds
93+
usleep($delay);
9394
}
9495
}
9596
throw $lastException;

0 commit comments

Comments
 (0)