be lenient when possible if server cannot furnish all dependencies

This commit is contained in:
Josh Humphries 2024-04-09 16:57:16 -04:00
parent d7469ece31
commit 69998f45bd
1 changed files with 1 additions and 0 deletions

View File

@ -600,6 +600,7 @@ func main() {
refCtx := metadata.NewOutgoingContext(ctx, md) refCtx := metadata.NewOutgoingContext(ctx, md)
cc = dial() cc = dial()
refClient = grpcreflect.NewClientAuto(refCtx, cc) refClient = grpcreflect.NewClientAuto(refCtx, cc)
refClient.AllowMissingFileDescriptors()
reflSource := grpcurl.DescriptorSourceFromServer(ctx, refClient) reflSource := grpcurl.DescriptorSourceFromServer(ctx, refClient)
if fileSource != nil { if fileSource != nil {
descSource = compositeSource{reflSource, fileSource} descSource = compositeSource{reflSource, fileSource}