Skip to content

Commit

Permalink
Merge pull request #264 from php-enqueue/consumption-message-not-set-…
Browse files Browse the repository at this point in the history
…to-context

[consumption] fix context is missing message on exception.
  • Loading branch information
makasim authored Nov 11, 2017
2 parents a7856c5 + 85aa4d4 commit cca480a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/enqueue/Consumption/QueueConsumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function consume(ExtensionInterface $runtimeExtension = null)
while (true) {
try {
if ($this->psrContext instanceof AmqpContext) {
$callback = function (AmqpMessage $message, AmqpConsumer $consumer) use ($extension, $logger) {
$callback = function (AmqpMessage $message, AmqpConsumer $consumer) use ($extension, $logger, &$context) {
$currentProcessor = null;

/** @var PsrQueue $queue */
Expand Down

0 comments on commit cca480a

Please sign in to comment.