Skip to content

Commit

Permalink
Fix implementation of explicit refresh policy.
Browse files Browse the repository at this point in the history
Original Pull Request #2908
Closes #2907
  • Loading branch information
sothawo authored May 10, 2024
1 parent dc5bf5a commit 94a40a7
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -457,9 +457,7 @@ public <R> R executeAndRefresh(OperationsCallback<R> callback) {

@Nullable
public <R> R executeAndRefresh(OperationsCallback<R> callback, @Nullable RefreshPolicy refreshPolicy) {
R result = callback.doWithOperations(operations.withRefreshPolicy(refreshPolicy));
doRefresh();
return result;
return callback.doWithOperations(operations.withRefreshPolicy(refreshPolicy));
}
// endregion
}

0 comments on commit 94a40a7

Please sign in to comment.