Tweak OpenPointInTimeRequest createTask

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.
This commit is contained in:
Luca Cavanna 2020-09-11 10:06:35 +02:00
parent aafb2cb812
commit 3d3a1b4bc2
1 changed files with 6 additions and 3 deletions

View File

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