Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
Signed-off-by: Kaushal Kumar <ravi.kaushal97@gmail.com>
  • Loading branch information
kaushalmahi12 committed Sep 11, 2024
1 parent caf5914 commit b78ca02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/src/main/java/org/opensearch/wlm/QueryGroupTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class QueryGroupTask extends CancellableTask {
private static final Logger logger = LogManager.getLogger(QueryGroupTask.class);
public static final String QUERY_GROUP_ID_HEADER = "queryGroupId";
public static final Supplier<String> DEFAULT_QUERY_GROUP_ID_SUPPLIER = () -> "DEFAULT_QUERY_GROUP";
private LongSupplier nanoTimeSupplier;
private final LongSupplier nanoTimeSupplier;
private String queryGroupId;

public QueryGroupTask(long id, String type, String action, String description, TaskId parentTaskId, Map<String, String> headers) {
Expand All @@ -48,7 +48,7 @@ public QueryGroupTask(
Map<String, String> headers,
TimeValue cancelAfterTimeInterval
) {
super(id, type, action, description, parentTaskId, headers, cancelAfterTimeInterval);
this(id, type, action, description, parentTaskId, headers, cancelAfterTimeInterval, System::nanoTime);
}

public QueryGroupTask(
Expand Down

0 comments on commit b78ca02

Please sign in to comment.