Skip to content

Commit

Permalink
Tweak OpenPointInTimeRequest createTask
Browse files Browse the repository at this point in the history
This commit addresses a super minor misalignment with master, applying exactly the same change that was made as part of #62057, which was backported before point in time APIs were backported.
  • Loading branch information
javanna committed Sep 11, 2020
1 parent aafb2cb commit 3d3a1b4
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,13 @@ public String preference() {
return preference;
}

@Override
public String getDescription() {
return "open point in time: indices [" + String.join(",", indices) + "] keep_alive [" + keepAlive + "]";
}

@Override
public Task createTask(long id, String type, String action, TaskId parentTaskId, Map<String, String> headers) {
final Supplier<String> description =
() -> "open point in time: indices [" + String.join(",", indices) + "] keep_alive [" + keepAlive + "]";
return new SearchTask(id, type, action, description, parentTaskId, headers);
return new SearchTask(id, type, action, this::getDescription, parentTaskId, headers);
}
}

0 comments on commit 3d3a1b4

Please sign in to comment.