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
This commit is contained in:
Michael Lumish 2022-11-11 11:19:28 -08:00 committed by GitHub
commit e066a5a97b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ export class FilterStackFactory implements FilterFactory<FilterStack> {
}
clone(): FilterStackFactory {
return new FilterStackFactory(this.factories);
return new FilterStackFactory([...this.factories]);
}
createFilter(): FilterStack {