Skip to content

Use of deprecated grpc Metadata FromContext and NewContext #597

@travissalascox

Description

@travissalascox

Was just looking through the grpc metadata docs the other day and noticed metadata.NewContext and metadata.FromContext have been deprecated. From grpc-metadata looks seems the new prefer way is to use FromIncomingContext and NewOutgoingContext respectively (granted there does look to be a bug in the doc where it still states NewContext in one place, the examples had it change).

I know that FromContext is used in grpc/service.go and NewContext in grpc/client.go.

This is definitely not a big thing at all, but wasn't sure if it had be brought to your attention yet or if there were any plans to replace those with FromIncomingContext and NewOutgoingContext. If there aren't and it's alright, can push up a quick change for that.

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