Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
binary111 opened this issue Jul 23, 2019 · 0 comments
Open

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

binary111 opened this issue Jul 23, 2019 · 0 comments

Comments

@binary111
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant