Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
Commit99fa193
committed
bug#46797 [Messenger] Ceil waiting time when multiplier is a float on retry (WissameMekhilef)
This PR was submitted for the 6.1 branch but it was squashed and merged into the 4.4 branch instead.Discussion----------[Messenger] Ceil waiting time when multiplier is a float on retry| Q | A| ------------- | ---| Branch? | 4.4| Bug fix? | yes| New feature? | no| Deprecations? | no| Tickets |#46795| License | MIT| Doc PR | Not requiredIn the Messenger - MultiplierRetryStrategy the return type for the function `getWaitingTime` is int, however with the computation of that function we were returning a float, this is because float * int returns a float and the attribute $multiplier is a float.With this fix, we are rounding up the delay and casting into an int.Commits-------3b62a06 [Messenger] Ceil waiting time when multiplier is a float on retryFile tree
2 files changed
+7
-2
lines changed- src/Symfony/Component/Messenger
- Retry
- Tests/Retry
2 files changed
+7
-2
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
| |
83 |
| - | |
| 83 | + | |
84 | 84 |
| |
85 | 85 |
|
Lines changed: 6 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
55 |
| - | |
| 55 | + | |
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
| |||
83 | 83 |
| |
84 | 84 |
| |
85 | 85 |
| |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
86 | 91 |
| |
87 | 92 |
|
0 commit comments
Comments
(0)