Skip to content

Commit

Permalink
delay strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
ASKozienko committed Aug 7, 2017
1 parent b2c5d72 commit a797648
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/amqp-bunny/AmqpContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function createConsumer(PsrDestination $destination)
*/
public function createProducer()
{
$producer = new AmqpProducer($this->getBunnyChannel(), $this);
$producer = new AmqpProducer($this->getBunnyChannel(), $this);
$producer->setDelayStrategy($this->delayStrategy);

return $producer;
Expand Down
2 changes: 1 addition & 1 deletion pkg/amqp-ext/AmqpConnectionFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function __construct($config = 'amqp://')
public function createContext()
{
if ($this->config['lazy']) {
$context = new AmqpContext(function () {
$context = new AmqpContext(function () {
return $this->createExtContext($this->establishConnection());
}, $this->config['receive_method']);
$context->setDelayStrategy($this->delayStrategy);
Expand Down
2 changes: 1 addition & 1 deletion pkg/amqp-tools/Tests/RabbitMqDlxDelayStrategyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use Enqueue\AmqpTools\DelayStrategy;
use Enqueue\AmqpTools\RabbitMqDlxDelayStrategy;
use Enqueue\Test\ClassExtensionTrait;
use Interop\Amqp\AmqpDestination;
use Interop\Amqp\AmqpContext;
use Interop\Amqp\AmqpDestination;
use Interop\Amqp\AmqpProducer;
use Interop\Amqp\Impl\AmqpMessage;
use Interop\Amqp\Impl\AmqpQueue;
Expand Down

0 comments on commit a797648

Please sign in to comment.