Skip to content

Commit

Permalink
resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Chen committed Apr 28, 2021
1 parent 643532d commit 114fc26
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -724,7 +724,7 @@ public void run() {
}
}

ApiFuture<WriteResult> transformedFuture =
ApiFuture<WriteResult> processedOperationFuture =
ApiFutures.transformAsync(
operation.getFuture(),
new ApiAsyncFunction<WriteResult, WriteResult>() {
Expand All @@ -733,10 +733,11 @@ public ApiFuture<WriteResult> apply(WriteResult result) throws Exception {
processBufferedOperations();
return ApiFutures.immediateFuture(result);
}
});
},
MoreExecutors.directExecutor());

return ApiFutures.catchingAsync(
transformedFuture,
processedOperationFuture,
ApiException.class,
new ApiAsyncFunction<ApiException, WriteResult>() {
public ApiFuture<WriteResult> apply(ApiException e) throws Exception {
Expand Down

0 comments on commit 114fc26

Please sign in to comment.