From 52f9031184d547d4beb32abda511f7d4f98588ff Mon Sep 17 00:00:00 2001 From: Jonathan Amsterdam Date: Tue, 4 Jan 2022 07:49:52 -0500 Subject: 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 Run-TryBot: Jonathan Amsterdam TryBot-Result: kokoro Reviewed-by: Jamal Carvalho --- internal/queue/queue.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/queue/queue.go') 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{ -- cgit v1.3-5-g9baa