Package list golang-github-go-kit-kit / 335e7c7
removed deprecated functions changed `NewContext -> NewOutgoingContext` and `FromContext -> FromIncomingContext` as described in [metadta](https://github.com/grpc/grpc-go/blob/master/metadata/metadata.go) TRAVIS ALLEN SALAS COX 4 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
9090 for _, f := range c.before {
9191 ctx = f(ctx, md)
9292 }
93 ctx = metadata.NewContext(ctx, *md)
93 ctx = metadata.NewOutgoingContext(ctx, *md)
9494
9595 var header, trailer metadata.MD
9696 grpcReply := reflect.New(c.grpcReply).Interface()
7272 // ServeGRPC implements the Handler interface.
7373 func (s Server) ServeGRPC(ctx oldcontext.Context, req interface{}) (oldcontext.Context, interface{}, error) {
7474 // Retrieve gRPC metadata.
75 md, ok := metadata.FromContext(ctx)
75 md, ok := metadata.FromIncomingContext(ctx)
7676 if !ok {
7777 md = metadata.MD{}
7878 }