Skip to content

Mongodb transport #430

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
May 3, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
develop
  • Loading branch information
turboboy88 committed May 2, 2018
commit 9cbbce8167bf6ebde02bb07fbbf26015636f9ff8
2 changes: 0 additions & 2 deletions pkg/mongodb/MongodbMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ public function __construct($body = '', array $properties = [], array $headers =
$this->properties = $properties;
$this->headers = $headers;
$this->redelivered = false;
$this->priority = 0;
$this->deliveryDelay = null;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion pkg/mongodb/MongodbProducer.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function send(PsrDestination $destination, PsrMessage $message)
InvalidDestinationException::assertDestinationInstanceOf($destination, MongodbDestination::class);
InvalidMessageException::assertMessageInstanceOf($message, MongodbMessage::class);

if (null !== $this->priority && 0 === $message->getPriority()) {
if (null !== $this->priority && null === $message->getPriority()) {
$message->setPriority($this->priority);
}
if (null !== $this->deliveryDelay && null === $message->getDeliveryDelay()) {
Expand Down