Skip to content

Commit

Permalink
[consumption] fix context is missing message on exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
makasim committed Nov 10, 2017
1 parent bfd01d8 commit 85aa4d4
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 85aa4d4

Please sign in to comment.