diff --git a/changelog.md b/changelog.md index d918174..2fa54b0 100644 --- a/changelog.md +++ b/changelog.md @@ -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 diff --git a/composer.json b/composer.json index 87a2019..f444444 100644 --- a/composer.json +++ b/composer.json @@ -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": { diff --git a/src/PubSubConnectionFactory.php b/src/PubSubConnectionFactory.php index ef98e35..dea57bc 100644 --- a/src/PubSubConnectionFactory.php +++ b/src/PubSubConnectionFactory.php @@ -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'); @@ -138,7 +140,9 @@ protected function makeGoogleCloudAdapter(array $config) $autoCreateTopics, $autoCreateSubscriptions, $backgroundBatching, - $maxMessages + $maxMessages, + $returnImmediately, + $returnImmediatelyPause ); } diff --git a/src/config/config.php b/src/config/config.php index c3c4a11..51690ad 100644 --- a/src/config/config.php +++ b/src/config/config.php @@ -63,6 +63,8 @@ 'background_batching' => false, 'background_daemon' => false, 'max_messages' => 1000, + 'return_immediately' => false, + 'return_immediately_pause' => 500000, ], 'http' => [