Skip to content

Commit 2e5c41c

Browse files
authored
Merge pull request #1167 from SimplyCodedSoftware/hotfix/delay-as-int
Fix dbal delivery delay to always keep integer value
2 parents c035f4d + e2a8101 commit 2e5c41c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/dbal/DbalProducer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function send(Destination $destination, Message $message): void
8989
throw new \LogicException(sprintf('Delay must be positive integer but got: "%s"', $delay));
9090
}
9191

92-
$dbalMessage['delayed_until'] = time() + (int) $delay / 1000;
92+
$dbalMessage['delayed_until'] = time() + (int) ($delay / 1000);
9393
}
9494

9595
$timeToLive = $message->getTimeToLive();

0 commit comments

Comments
 (0)