Skip to content

Commit 9cbbce8

Browse files
committed
develop
1 parent 7e9f62d commit 9cbbce8

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

pkg/mongodb/MongodbMessage.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ public function __construct($body = '', array $properties = [], array $headers =
6666
$this->properties = $properties;
6767
$this->headers = $headers;
6868
$this->redelivered = false;
69-
$this->priority = 0;
70-
$this->deliveryDelay = null;
7169
}
7270

7371
/**

pkg/mongodb/MongodbProducer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function send(PsrDestination $destination, PsrMessage $message)
5252
InvalidDestinationException::assertDestinationInstanceOf($destination, MongodbDestination::class);
5353
InvalidMessageException::assertMessageInstanceOf($message, MongodbMessage::class);
5454

55-
if (null !== $this->priority && 0 === $message->getPriority()) {
55+
if (null !== $this->priority && null === $message->getPriority()) {
5656
$message->setPriority($this->priority);
5757
}
5858
if (null !== $this->deliveryDelay && null === $message->getDeliveryDelay()) {

0 commit comments

Comments
 (0)