Skip to content

Commit e2a8101

Browse files
committed
Fix dbal delivery delay to always keep integer value
1 parent c035f4d commit e2a8101

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)