Skip to content

Commit

Permalink
Update to standard library context package. (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
goller authored and dsnet committed Mar 30, 2017
1 parent c9c7427 commit e514ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protoc-gen-go/grpc/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const generatedCodeVersion = 4
// Paths for packages used by code generated in this file,
// relative to the import_prefix of the generator.Generator.
const (
contextPkgPath = "golang.org/x/net/context"
contextPkgPath = "context"
grpcPkgPath = "google.golang.org/grpc"
)

Expand Down

2 comments on commit e514ff5

@tamird
Copy link
Contributor

@tamird tamird commented on e514ff5 Mar 31, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Forgot to regenerate?

@maxim-rstor
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Broke all my Go projects today. Now I am getting this and can't compile anything:

cannot use handler (type func("context".Context, interface {}) (interface {}, error)) as type grpc.UnaryHandler in argument to interceptor
cannot use _BlockService_Propose_Handler (type func(interface {}, "context".Context, func(interface {}) error, grpc.UnaryServerInterceptor) (interface {}, error)) as type grpc.methodHandler in field value

Go can't compile the auto-generated *.pb.go files now.
Any help please?

Please sign in to comment.