Skip to content

Commit e066a5a

Browse files
authored
Merge pull request #2273 from murgatroid99/grpc-js_filter_factory_reuse_fix2
grpc-js: Make filter stack factory clone with a copy of the array
2 parents dda6263 + 38f2497 commit e066a5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/grpc-js/src/filter-stack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class FilterStackFactory implements FilterFactory<FilterStack> {
8989
}
9090

9191
clone(): FilterStackFactory {
92-
return new FilterStackFactory(this.factories);
92+
return new FilterStackFactory([...this.factories]);
9393
}
9494

9595
createFilter(): FilterStack {

0 commit comments

Comments
 (0)