grpc-ecosystem / grpc-opentracing

OpenTracing is a set of consistent, expressive, vendor-neutral APIs for distributed tracing and context propagation
BSD 3-Clause "New" or "Revised" License
472 stars 98 forks source link

replace `golang.org/x/net/context` to `context` #49

Open binary111 opened 5 years ago

binary111 commented 5 years ago

vendor/github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc/client.go:29:9: cannot use func literal (type func("service/vendor/golang.org/x/net/context".Context, string, interface {}, interface {}, *grpc.ClientConn, grpc.UnaryInvoker, ...grpc.CallOption) error) as type grpc.UnaryClientInterceptor in return argument

As of Go 1.7 this package(golang.org/x/net/context) is available in the standard library under the name context. https://golang.org/pkg/context. So we should replace all golang.org/x/net/context with context.