diff options
| author | Jonathan Amsterdam <jba@google.com> | 2022-01-04 07:49:52 -0500 |
|---|---|---|
| committer | Jonathan Amsterdam <jba@google.com> | 2022-01-04 18:13:17 +0000 |
| commit | 52f9031184d547d4beb32abda511f7d4f98588ff (patch) | |
| tree | cf149d1c08ba46f784ec519f364f1abb8b203c08 /internal/queue/queue.go | |
| parent | b9a85f067dcc1a1c10ee820390f66ba7d689efcd (diff) | |
| download | go-x-pkgsite-52f9031184d547d4beb32abda511f7d4f98588ff.tar.xz | |
go.mod: update cloud.google.com/go imports to latest versions
Change-Id: I44ac70e194eb6731c6886b7616954cb7d77b9a44
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/375274
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Diffstat (limited to 'internal/queue/queue.go')
| -rw-r--r-- | internal/queue/queue.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/queue/queue.go b/internal/queue/queue.go index 5eb9bc2f..5b192c29 100644 --- a/internal/queue/queue.go +++ b/internal/queue/queue.go @@ -17,7 +17,6 @@ import ( "time" cloudtasks "cloud.google.com/go/cloudtasks/apiv2" - "github.com/golang/protobuf/ptypes" "golang.org/x/pkgsite/internal" "golang.org/x/pkgsite/internal/config" "golang.org/x/pkgsite/internal/derrors" @@ -27,6 +26,7 @@ import ( taskspb "google.golang.org/genproto/googleapis/cloud/tasks/v2" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" + "google.golang.org/protobuf/types/known/durationpb" ) // A Queue provides an interface for asynchronous scheduling of fetch actions. @@ -186,7 +186,7 @@ func (q *GCP) newTaskRequest(modulePath, version string, opts *Options) *taskspb task := &taskspb.Task{ Name: fmt.Sprintf("%s/tasks/%s", q.queueName, taskID), - DispatchDeadline: ptypes.DurationProto(maxCloudTasksTimeout), + DispatchDeadline: durationpb.New(maxCloudTasksTimeout), } task.MessageType = &taskspb.Task_HttpRequest{ HttpRequest: &taskspb.HttpRequest{ |
