Skip to content

Commit

Permalink
propagate load options to grpc handler
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-ag5 committed Mar 28, 2023
1 parent a1e0819 commit 2e5a1ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/handlers/grpc/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,11 @@ ${rootJsonEntries
const rootLogger = this.logger.child(name);

rootLogger.debug(`Creating package definition from file descriptor set object`);
const packageDefinition = fromJSON(rootJson);
let options: LoadOptions;
if (typeof this.config.source === 'object') {
options = this.config.source.load;
}
const packageDefinition = fromJSON(rootJson, options);

rootLogger.debug(`Creating service client for package definition`);
const grpcObject = loadPackageDefinition(packageDefinition);
Expand Down

0 comments on commit 2e5a1ca

Please sign in to comment.