From 1922f9183d1bd4fd60b9a9330b87e462f0c13a0b Mon Sep 17 00:00:00 2001 From: Jens Fosgerau Date: Mon, 20 Feb 2023 22:35:34 +0100 Subject: [PATCH] pubsub/gcppubsub: update proto import --- pubsub/example_test.go | 2 +- pubsub/gcppubsub/gcppubsub.go | 2 +- pubsub/gcppubsub/gcppubsub_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pubsub/example_test.go b/pubsub/example_test.go index 0943af7467..5259dcf985 100644 --- a/pubsub/example_test.go +++ b/pubsub/example_test.go @@ -22,7 +22,7 @@ import ( "gocloud.dev/pubsub" pbraw "cloud.google.com/go/pubsub/apiv1" - pbapi "google.golang.org/genproto/googleapis/pubsub/v1" + pbapi "cloud.google.com/go/pubsub/apiv1/pubsubpb" "google.golang.org/grpc/status" ) diff --git a/pubsub/gcppubsub/gcppubsub.go b/pubsub/gcppubsub/gcppubsub.go index a75d5d3f67..9fda85c3fd 100644 --- a/pubsub/gcppubsub/gcppubsub.go +++ b/pubsub/gcppubsub/gcppubsub.go @@ -62,6 +62,7 @@ import ( "time" raw "cloud.google.com/go/pubsub/apiv1" + pb "cloud.google.com/go/pubsub/apiv1/pubsubpb" "github.com/google/wire" "gocloud.dev/gcerrors" "gocloud.dev/gcp" @@ -71,7 +72,6 @@ import ( "gocloud.dev/pubsub/batcher" "gocloud.dev/pubsub/driver" "google.golang.org/api/option" - pb "google.golang.org/genproto/googleapis/pubsub/v1" "google.golang.org/grpc" "google.golang.org/grpc/credentials" "google.golang.org/grpc/credentials/oauth" diff --git a/pubsub/gcppubsub/gcppubsub_test.go b/pubsub/gcppubsub/gcppubsub_test.go index 2d2677668d..e52d2659e7 100644 --- a/pubsub/gcppubsub/gcppubsub_test.go +++ b/pubsub/gcppubsub/gcppubsub_test.go @@ -23,12 +23,12 @@ import ( "testing" raw "cloud.google.com/go/pubsub/apiv1" + "cloud.google.com/go/pubsub/apiv1/pubsubpb" "gocloud.dev/gcp" "gocloud.dev/internal/testing/setup" "gocloud.dev/pubsub" "gocloud.dev/pubsub/driver" "gocloud.dev/pubsub/drivertest" - pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" )