Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(366)

Unified Diff: common/gcloud/pubsub/quota.go

Issue 1863973002: LogDog: Update to archival V2. (Closed) Base URL: https://github.com/luci/luci-go@grpcutil-errors
Patch Set: Fix proto comment. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « common/gcloud/gs/path.go ('k') | common/logdog/coordinator/query_test.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/gcloud/pubsub/quota.go
diff --git a/common/gcloud/pubsub/quota.go b/common/gcloud/pubsub/quota.go
index 116a27b5f9de78b9a49da178d54361a97ff63e19..7e49b4455ae8d4848bb79b6cbea9af12f94c497d 100644
--- a/common/gcloud/pubsub/quota.go
+++ b/common/gcloud/pubsub/quota.go
@@ -5,6 +5,8 @@
package pubsub
import (
+ "time"
+
"google.golang.org/cloud/pubsub"
)
@@ -27,4 +29,8 @@ const (
// MaxSubscriptionPullSize is the maximum number of subscription records that
// can be pulled at a time.
MaxSubscriptionPullSize = pubsub.DefaultMaxPrefetch
+
+ // MaxACKDeadline is the maximum acknowledgement deadline that can be applied
+ // to a leased subscription Message.
+ MaxACKDeadline = 600 * time.Second
)
« no previous file with comments | « common/gcloud/gs/path.go ('k') | common/logdog/coordinator/query_test.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698