Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit aa0c46b

Browse files
committed
Make a copy of the gaxOpts parameter
Don’t modify the gaxOptions parameter in place and pass it down. This change makes it so that changes to gax options downstream will not affect gaxOptions in this layer of the call stack which is desirable and which also allows the failing test to pass.
1 parent 9d80615 commit aa0c46b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/table.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ Please use the format 'prezzy' or '${instance.name}/tables/prezzy'.`);
894894
reqOpts.rowsLimit = rowsLimit - rowsRead;
895895
}
896896

897-
options.gaxOptions = populateAttemptHeader(
897+
const gaxOpts = populateAttemptHeader(
898898
numRequestsMade,
899899
options.gaxOptions
900900
);
@@ -903,7 +903,7 @@ Please use the format 'prezzy' or '${instance.name}/tables/prezzy'.`);
903903
client: 'BigtableClient',
904904
method: 'readRows',
905905
reqOpts,
906-
gaxOpts: options.gaxOptions,
906+
gaxOpts,
907907
retryOpts,
908908
});
909909

0 commit comments

Comments
 (0)