vendor: upgrade grpc/grpc-go to v1.11.3

This commit is contained in:
Joe Betz
2018-04-09 14:15:22 -07:00
committed by Gyuho Lee
parent f20a1173d8
commit 12acfc057a
8 changed files with 52 additions and 235 deletions

View File

@ -1359,3 +1359,13 @@ func SetTrailer(ctx context.Context, md metadata.MD) error {
}
return stream.SetTrailer(md)
}
// Method returns the method string for the server context. The returned
// string is in the format of "/service/method".
func Method(ctx context.Context) (string, bool) {
s := serverTransportStreamFromContext(ctx)
if s == nil {
return "", false
}
return s.Method(), true
}