Skip to content

Commit

Permalink
Merge pull request #6 from wlogic/feature/fr-3
Browse files Browse the repository at this point in the history
Updated return
  • Loading branch information
manseuk committed Apr 29, 2020
2 parents 5544340 + 7146762 commit 2712237
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Command/GoBatchConsumerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
// store response
file_put_contents($input->getArgument('filename')."_response", json_encode($response));
// go application is expecting an exit code
exit(0);
return 0;
}

protected function getConsumerService()
Expand Down
2 changes: 1 addition & 1 deletion Command/GoConsumerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$response = call_user_func([$this->getContainer()->get($class), $method,], $msg);

// go application is expecting an exit code that is translated into ack / nack
exit($this->processResponse($response));
return $this->processResponse($response);
}

protected function getConsumerService()
Expand Down
2 changes: 1 addition & 1 deletion RabbitMq/BatchConsumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class BatchConsumer extends BaseAmqp implements DequeuerInterface
/**
* @var int number of seconds before graceful exit
*/
protected $gracefulMaxExecutionSeconds;
protected $gracefulMaxExecutionSeconds = 0;
/**
* @var bool
*/
Expand Down

0 comments on commit 2712237

Please sign in to comment.