Skip to content

Commit

Permalink
verify internal state
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannic committed Nov 7, 2022
1 parent 3fa1c8c commit d63c5c8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ public boolean actionCacheSupportsUpdate() {
/** Upload the action result to the remote cache. */
public ListenableFuture<Void> uploadActionResult(
RemoteActionExecutionContext context, ActionKey actionKey, ActionResult actionResult) {
Preconditions.checkState(
actionCacheSupportsUpdate(),
"Cannot upload action result to remote cache that does not support action cache updates");

Completable upload =
RxFutures.toCompletable(
Expand Down

0 comments on commit d63c5c8

Please sign in to comment.