update server reflection code to comply with the change to the grpc generator

This commit is contained in:
Mak Mukhi
2016-10-21 18:06:55 -07:00
parent 2b7e876a2e
commit 727a60e4d1
12 changed files with 14 additions and 13 deletions

View File

@ -251,11 +251,12 @@ func (s *serverReflectionServer) fileDescEncodingContainingSymbol(name string) (
}
// Metadata not valid.
enc, ok := meta.([]byte)
fileNameForMeta, ok := meta.(string)
if !ok {
return nil, fmt.Errorf("invalid file descriptor for symbol: %v", name)
}
enc := proto.FileDescriptor(fileNameForMeta)
fd, err = s.decodeFileDesc(enc)
if err != nil {
return nil, err