Skip to content

Commit 7b2cc2e

Browse files
authored
Merge pull request #36 from go-oss/update-gax-go
chore: update github.com/googleapis/gax-go/v2
2 parents b4d8c85 + aaa99c6 commit 7b2cc2e

File tree

8 files changed

+9
-10
lines changed

8 files changed

+9
-10
lines changed

exporter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package scheduler
22

33
import (
4-
"github.com/googleapis/gax-go"
4+
"github.com/googleapis/gax-go/v2"
55
)
66

77
func (s *Scheduler) SetIterator(f func(...gax.CallOption) *Iterator) {

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ go 1.17
55
require (
66
cloud.google.com/go/cloudtasks v1.3.0
77
github.com/golang/mock v1.6.0
8-
github.com/googleapis/gax-go v2.0.2+incompatible
8+
github.com/googleapis/gax-go/v2 v2.2.0
99
github.com/stretchr/testify v1.7.1
1010
google.golang.org/api v0.74.0
1111
google.golang.org/genproto v0.0.0-20220324131243-acbaeb5b85eb
@@ -19,7 +19,6 @@ require (
1919
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
2020
github.com/golang/protobuf v1.5.2 // indirect
2121
github.com/google/go-cmp v0.5.7 // indirect
22-
github.com/googleapis/gax-go/v2 v2.2.0 // indirect
2322
github.com/pmezard/go-difflib v1.0.0 // indirect
2423
go.opencensus.io v0.23.0 // indirect
2524
golang.org/x/net v0.0.0-20220325170049-de3da57026de // indirect

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,6 @@ github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLe
156156
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
157157
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
158158
github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
159-
github.com/googleapis/gax-go v2.0.2+incompatible h1:silFMLAnr330+NRuag/VjIGF7TLp/LBrV2CJKFLWEww=
160-
github.com/googleapis/gax-go v2.0.2+incompatible/go.mod h1:SFVmujtThgffbyetf+mdk2eWhX2bMyUtNHzFKcPA9HY=
161159
github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg=
162160
github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
163161
github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0=

iterator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"strings"
1010

1111
cloudtasks "cloud.google.com/go/cloudtasks/apiv2"
12-
"github.com/googleapis/gax-go"
12+
"github.com/googleapis/gax-go/v2"
1313
"google.golang.org/api/iterator"
1414
taskspb "google.golang.org/genproto/googleapis/cloud/tasks/v2"
1515
)

mock/iterator.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mock/scheduler.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scheduler.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"fmt"
99

1010
cloudtasks "cloud.google.com/go/cloudtasks/apiv2"
11-
"github.com/googleapis/gax-go"
11+
"github.com/googleapis/gax-go/v2"
1212
taskspb "google.golang.org/genproto/googleapis/cloud/tasks/v2"
1313
"google.golang.org/grpc/codes"
1414
"google.golang.org/grpc/status"
@@ -25,6 +25,8 @@ type CloudTasksClient interface {
2525
DeleteTask(ctx context.Context, req *taskspb.DeleteTaskRequest, opts ...gax.CallOption) error
2626
}
2727

28+
var _ CloudTasksClient = (*cloudtasks.Client)(nil)
29+
2830
type Scheduler struct {
2931
client CloudTasksClient
3032
queuePath string

scheduler_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"time"
1010

1111
"github.com/golang/mock/gomock"
12-
"github.com/googleapis/gax-go"
12+
"github.com/googleapis/gax-go/v2"
1313
"github.com/stretchr/testify/assert"
1414
"google.golang.org/api/iterator"
1515
taskspb "google.golang.org/genproto/googleapis/cloud/tasks/v2"

0 commit comments

Comments
 (0)