support mulitple protoset files (#2190)

This commit is contained in:
马守越
2022-07-27 09:10:23 +08:00
committed by GitHub
parent 5d7919a9f5
commit 5348375b99
2 changed files with 5 additions and 4 deletions

View File

@@ -142,8 +142,8 @@ func (s *Server) createDescriptorSource(cli zrpc.Client, up Upstream) (grpcurl.D
var source grpcurl.DescriptorSource
var err error
if len(up.ProtoSet) > 0 {
source, err = grpcurl.DescriptorSourceFromProtoSets(up.ProtoSet)
if len(up.ProtoSets) > 0 {
source, err = grpcurl.DescriptorSourceFromProtoSets(up.ProtoSets...)
if err != nil {
return nil, err
}