Skip to content

Commit e8af96e

Browse files
authored
Use correct context package (#79)
1 parent 8de1d02 commit e8af96e

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

evictiontest/workflow_cache_eviction_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
package evictiontest
3030

3131
import (
32+
"context"
3233
"strconv"
3334
"testing"
3435
"time"
@@ -41,7 +42,6 @@ import (
4142
"go.temporal.io/temporal-proto/workflowservice"
4243
"go.temporal.io/temporal-proto/workflowservicemock"
4344
"go.uber.org/atomic"
44-
"golang.org/x/net/context"
4545
"google.golang.org/grpc"
4646

4747
"go.temporal.io/temporal/internal"

go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ require (
2727
go.uber.org/goleak v1.0.0
2828
go.uber.org/zap v1.14.1
2929
golang.org/x/lint v0.0.0-20200302205851-738671d3881b // indirect
30-
golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e
30+
golang.org/x/sys v0.0.0-20200327173247-9dae0f8f5775 // indirect
3131
golang.org/x/time v0.0.0-20191024005414-555d28b269f0
32-
golang.org/x/tools v0.0.0-20200326210457-5d86d385bf88 // indirect
32+
golang.org/x/tools v0.0.0-20200327195553-82bb89366a1e // indirect
3333
google.golang.org/genproto v0.0.0-20200326112834-f447254575fd // indirect
3434
google.golang.org/grpc v1.28.0
3535
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect

go.sum

+4-2
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7w
140140
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
141141
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd h1:xhmwyvizuTgC2qz7ZlMluP20uW+C3Rm0FD/WLDX8884=
142142
golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
143+
golang.org/x/sys v0.0.0-20200327173247-9dae0f8f5775 h1:TC0v2RSO1u2kn1ZugjrFXkRZAEaqMN/RW+OTZkBzmLE=
144+
golang.org/x/sys v0.0.0-20200327173247-9dae0f8f5775/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
143145
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
144146
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
145147
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
@@ -161,8 +163,8 @@ golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtn
161163
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
162164
golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
163165
golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
164-
golang.org/x/tools v0.0.0-20200326210457-5d86d385bf88 h1:F7fM2kxXfuWw820fa+MMCCLH6hmYe+jtLnZpwoiLK4Q=
165-
golang.org/x/tools v0.0.0-20200326210457-5d86d385bf88/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8=
166+
golang.org/x/tools v0.0.0-20200327195553-82bb89366a1e h1:qCZ8SbsZMjT0OuDPCEBxgLZic4NMj8Gj4vNXiTVRAaA=
167+
golang.org/x/tools v0.0.0-20200327195553-82bb89366a1e/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8=
166168
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
167169
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
168170
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=

internal/context.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ type Context interface {
103103
// // Package user defines a User type that's stored in Contexts.
104104
// package user
105105
//
106-
// import "golang.org/x/net/context"
106+
// import "context"
107107
//
108108
// // User is the type of value stored in the Contexts.
109109
// type User struct {...}

internal/internal_task_handlers_interfaces_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
package internal
2222

2323
import (
24+
"context"
2425
"testing"
2526

2627
"github.com/golang/mock/gomock"
2728
"github.com/stretchr/testify/suite"
28-
"golang.org/x/net/context"
2929

3030
commonproto "go.temporal.io/temporal-proto/common"
3131
"go.temporal.io/temporal-proto/enums"

0 commit comments

Comments
 (0)