Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

Commit 1c6f3be

Browse files
authored
bump php-pubsub-google-cloud to v5.2 (#7)
1 parent d1a6049 commit 1c6f3be

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 3.2.0 - 2019-03-20
4+
5+
* Bump superbalist/php-pubsub-google-cloud ^5.2
6+
* Add config options for returnImmediately
7+
38
## 3.1.0 - 2019-03-06
49

510
* Bump up to superbalist/php-pubsub-google-cloud ^5.1

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"illuminate/config": "^4.0",
1616
"superbalist/php-pubsub": "^1.0|^2.0",
1717
"superbalist/php-pubsub-redis": "^1.0|^2.0",
18-
"superbalist/php-pubsub-google-cloud": "^5.1.0",
18+
"superbalist/php-pubsub-google-cloud": "^5.2.0",
1919
"superbalist/php-pubsub-http": "^1.0"
2020
},
2121
"autoload": {

src/PubSubConnectionFactory.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ protected function makeGoogleCloudAdapter(array $config)
127127
$backgroundBatching = array_get($config, 'background_batching', false);
128128
$backgroundDaemon = array_get($config, 'background_daemon', false);
129129
$maxMessages = array_get($config, 'max_messages', 1000);
130+
$returnImmediately = array_get($config, 'return_immediately', null);
131+
$returnImmediatelyPause = array_get($config, 'return_immediately_pause', null);
130132

131133
if ($backgroundDaemon) {
132134
putenv('IS_BATCH_DAEMON_RUNNING=true');
@@ -138,7 +140,9 @@ protected function makeGoogleCloudAdapter(array $config)
138140
$autoCreateTopics,
139141
$autoCreateSubscriptions,
140142
$backgroundBatching,
141-
$maxMessages
143+
$maxMessages,
144+
$returnImmediately,
145+
$returnImmediatelyPause
142146
);
143147
}
144148

src/config/config.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363
'background_batching' => false,
6464
'background_daemon' => false,
6565
'max_messages' => 1000,
66+
'return_immediately' => false,
67+
'return_immediately_pause' => 500000,
6668
],
6769

6870
'http' => [

0 commit comments

Comments
 (0)