Skip to content

Commit

Permalink
Merge pull request #2632 from gawsoftpl/master
Browse files Browse the repository at this point in the history
Fix issue #2631 [@grpc/grpc-reflection] Issue with proto file dependencies only on second or next request
  • Loading branch information
murgatroid99 committed Dec 14, 2023
2 parents d46360d + 3f2217e commit 2116df0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/grpc-reflection/src/implementations/reflection-v1.ts
Expand Up @@ -314,8 +314,8 @@ export class ReflectionV1Implementation {

private getFileDependencies(file: IFileDescriptorProto): IFileDescriptorProto[] {
const visited: Set<IFileDescriptorProto> = new Set();
const toVisit: IFileDescriptorProto[] = this.fileDependencies.get(file) || [];

const toVisit: IFileDescriptorProto[] = [...(this.fileDependencies.get(file) || [])];
while (toVisit.length > 0) {
const current = toVisit.pop();

Expand Down

0 comments on commit 2116df0

Please sign in to comment.