Update google.golang.org/grpc to v1.23.0

Change-Id: Ifbe8229d464a35a7598e28f53fe9d485c3e53e77
This commit is contained in:
Davanum Srinivas
2019-08-20 08:11:03 -04:00
parent bfb69dbb8f
commit 3d6ae5ef12
136 changed files with 9111 additions and 3524 deletions

View File

@@ -102,10 +102,10 @@ func RegisterCodec(codec Codec) {
if codec == nil {
panic("cannot register a nil Codec")
}
contentSubtype := strings.ToLower(codec.Name())
if contentSubtype == "" {
panic("cannot register Codec with empty string result for String()")
if codec.Name() == "" {
panic("cannot register Codec with empty string result for Name()")
}
contentSubtype := strings.ToLower(codec.Name())
registeredCodecs[contentSubtype] = codec
}