Skip to content

Commit

Permalink
Make verifier return type as ActionResponse (#7167)
Browse files Browse the repository at this point in the history
Signed-off-by: Heemin Kim <heemin@amazon.com>
  • Loading branch information
heemin32 authored May 1, 2023
1 parent 142ae46 commit 8386d10
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public void reset() {
* @param verifier A function which is called in place of {@link #doExecute(ActionType, ActionRequest, ActionListener)}
*/
public <Request extends ActionRequest, Response extends ActionResponse> void setExecuteVerifier(
BiFunction<ActionType<Response>, Request, Void> verifier
BiFunction<ActionType<Response>, Request, Response> verifier
) {
executeVerifier.set(verifier);
}
Expand All @@ -142,7 +142,7 @@ public <Request extends ActionRequest, Response extends ActionResponse> void doE
* @param verifier A function which is called in place of {@link #executeLocally(ActionType, ActionRequest, TaskListener)}
*/
public <Request extends ActionRequest, Response extends ActionResponse> void setExecuteLocallyVerifier(
BiFunction<ActionType<Response>, Request, Void> verifier
BiFunction<ActionType<Response>, Request, Response> verifier
) {
executeLocallyVerifier.set(verifier);
}
Expand Down

0 comments on commit 8386d10

Please sign in to comment.