Skip to content

Go 1.7 uses import "context" #711

Closed
@puellanivis

Description

@puellanivis

If you're using the new "context" library, then gRPC servers can't match the server to the interface, because it has the wrong type of context.

Compiling bin/linux.x86_64/wlserver

asci/cs/tools/whitelist/wlserver

./wlserver.go:767: cannot use wls (type _Server) as type WhitelistProto.GoogleWhitelistServer in argument to WhitelistProto.RegisterGoogleWhitelistServer:
*Server does not implement WhitelistProto.GoogleWhitelistServer (wrong type for Delete method)
have Delete(context.Context, *WhitelistProto.DeleteRequest) (_WhitelistProto.DeleteReply, error)
want Delete(context.Context, _WhitelistProto.DeleteRequest) (_WhitelistProto.DeleteReply, error)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions