Skip to content

Commit

Permalink
bump php-pubsub-google-cloud to v5.2 (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
geyer-za committed Mar 20, 2019
1 parent d1a6049 commit 1c6f3be
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 3.2.0 - 2019-03-20

* Bump superbalist/php-pubsub-google-cloud ^5.2
* Add config options for returnImmediately

## 3.1.0 - 2019-03-06

* Bump up to superbalist/php-pubsub-google-cloud ^5.1
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"illuminate/config": "^4.0",
"superbalist/php-pubsub": "^1.0|^2.0",
"superbalist/php-pubsub-redis": "^1.0|^2.0",
"superbalist/php-pubsub-google-cloud": "^5.1.0",
"superbalist/php-pubsub-google-cloud": "^5.2.0",
"superbalist/php-pubsub-http": "^1.0"
},
"autoload": {
Expand Down
6 changes: 5 additions & 1 deletion src/PubSubConnectionFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ protected function makeGoogleCloudAdapter(array $config)
$backgroundBatching = array_get($config, 'background_batching', false);
$backgroundDaemon = array_get($config, 'background_daemon', false);
$maxMessages = array_get($config, 'max_messages', 1000);
$returnImmediately = array_get($config, 'return_immediately', null);
$returnImmediatelyPause = array_get($config, 'return_immediately_pause', null);

if ($backgroundDaemon) {
putenv('IS_BATCH_DAEMON_RUNNING=true');
Expand All @@ -138,7 +140,9 @@ protected function makeGoogleCloudAdapter(array $config)
$autoCreateTopics,
$autoCreateSubscriptions,
$backgroundBatching,
$maxMessages
$maxMessages,
$returnImmediately,
$returnImmediatelyPause
);
}

Expand Down
2 changes: 2 additions & 0 deletions src/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
'background_batching' => false,
'background_daemon' => false,
'max_messages' => 1000,
'return_immediately' => false,
'return_immediately_pause' => 500000,
],

'http' => [
Expand Down

0 comments on commit 1c6f3be

Please sign in to comment.