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:
parent
aafb2cb812
commit
3d3a1b4bc2
|
@ -105,10 +105,13 @@ public final class OpenPointInTimeRequest extends ActionRequest implements Indic
|
|||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue