Skip to content

Commit

Permalink
fix: using context from call in ReadRowsRetryingCallable
Browse files Browse the repository at this point in the history
  • Loading branch information
isha97 committed Jul 16, 2024
1 parent 5691bd5 commit 1887ed9
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,16 @@ public void call(
ReadRowsRequest request,
final ResponseObserver<ReadRowsResponse> responseObserver,
ApiCallContext context) {
ApiCallContext actualContext = context == null ? this.context : context;
ReadRowsAttemptCallable attemptCallable =
new ReadRowsAttemptCallable(
innerCallable,
resumptionStrategyPrototype.createNew(),
request,
this.context,
actualContext,
responseObserver);

RetryingFuture<Void> retryingFuture = executor.createFuture(attemptCallable, this.context);
RetryingFuture<Void> retryingFuture = executor.createFuture(attemptCallable, actualContext);
attemptCallable.setExternalFuture(retryingFuture);
attemptCallable.start();

Expand Down

0 comments on commit 1887ed9

Please sign in to comment.