commit | 8b028388858868fccd76c7b2ab47491bd36058ed | [log] [tgz] |
---|---|---|
author | IlyaFaer <ilya.faer@mail.ru> | Wed Feb 26 12:45:23 2020 +0300 |
committer | Alex Hong <hongalex@google.com> | Tue Mar 10 19:05:47 2020 +0000 |
tree | 200b8194cb2cf469472267091d4fcd6425deee35 | |
parent | b084aa91d008f29df2c789fb03833d9c472ca67c [diff] |
pubsub: change MaxExtensionPeriod default Change-Id: Iec4cae40d09170cbb3716038c6f76d66e1a9fb27 Reviewed-on: https://code-review.googlesource.com/c/gocloud/+/52570 Reviewed-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Alex Hong <hongalex@google.com>
diff --git a/pubsub/subscription.go b/pubsub/subscription.go index 3d8229d..2d36577 100644 --- a/pubsub/subscription.go +++ b/pubsub/subscription.go
@@ -419,7 +419,7 @@ // DefaultReceiveSettings holds the default values for ReceiveSettings. var DefaultReceiveSettings = ReceiveSettings{ MaxExtension: 60 * time.Minute, - MaxExtensionPeriod: -1, + MaxExtensionPeriod: 0, MaxOutstandingMessages: 1000, MaxOutstandingBytes: 1e9, // 1G NumGoroutines: 1,