@@ -45,12 +45,12 @@ |
||
45 | 45 | } |
46 | 46 | |
47 | 47 | |
48 | - public function __invoke(int $currentRetryCount, Throwable $lastException, int &$interval) |
|
48 | + public function __invoke(int $currentRetryCount, Throwable $lastException, int&$interval) |
|
49 | 49 | { |
50 | 50 | if ($currentRetryCount < $this->retryCount) { |
51 | 51 | $delta = (int) (( |
52 | 52 | pow(2.0, $currentRetryCount) - 1.0) |
53 | - * random_int((int)($this->deltaBackoff * 0.8), (int)($this->deltaBackoff * 1.2)) |
|
53 | + * random_int((int) ($this->deltaBackoff * 0.8), (int) ($this->deltaBackoff * 1.2)) |
|
54 | 54 | ); |
55 | 55 | $interval = (int) min($this->minBackoff + $delta, $this->maxBackoff); |
56 | 56 |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | $this->retryCount = $retryCount; |
22 | 22 | $this->initialIntervalInMicroseconds = $initialIntervalInMicroseconds; |
23 | 23 | $this->incrementInMicroseconds = $incrementInMicroseconds; |
24 | - $this->firstFastRetry = $firstFastRetry; |
|
24 | + $this->firstFastRetry = $firstFastRetry; |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | public function getShouldRetry(): ShouldRetry |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | $this->incrementInMicroseconds = $incrementInMicroseconds; |
40 | 40 | } |
41 | 41 | |
42 | - public function __invoke(int $currentRetryCount, Throwable $lastException, int &$interval) |
|
42 | + public function __invoke(int $currentRetryCount, Throwable $lastException, int&$interval) |
|
43 | 43 | { |
44 | 44 | if ($currentRetryCount < $this->retryCount) { |
45 | 45 | $interval = $this->initialIntervalInMicroseconds + ($this->incrementInMicroseconds * $currentRetryCount); |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | { |
20 | 20 | $this->retryCount = $retryCount; |
21 | 21 | $this->retryIntervalInMicroseconds = $retryIntervalInMicroseconds; |
22 | - $this->firstFastRetry = $firstFastRetry; |
|
22 | + $this->firstFastRetry = $firstFastRetry; |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | public function getShouldRetry(): ShouldRetry |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | $this->retryIntervalInMicroseconds = $retryIntervalInMicroseconds; |
36 | 36 | } |
37 | 37 | |
38 | - public function __invoke(int $currentRetryCount, Throwable $lastException, int &$interval) |
|
38 | + public function __invoke(int $currentRetryCount, Throwable $lastException, int&$interval) |
|
39 | 39 | { |
40 | 40 | if ($currentRetryCount < $this->retryCount) { |
41 | 41 | $interval = $this->retryIntervalInMicroseconds; |
@@ -9,6 +9,6 @@ |
||
9 | 9 | |
10 | 10 | interface ShouldRetry |
11 | 11 | { |
12 | - public function __invoke(int $currentRetryCount, Throwable $lastError, int &$interval); |
|
12 | + public function __invoke(int $currentRetryCount, Throwable $lastError, int&$interval); |
|
13 | 13 | } |
14 | 14 |