Skip to content

Commit

Permalink
remove redundant code
Browse files Browse the repository at this point in the history
Signed-off-by: Kaushal Kumar <[email protected]>
  • Loading branch information
kaushalmahi12 committed Jul 10, 2024
1 parent 0e4bc0c commit 133ab0b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,6 @@ public void onFailure(Exception exc) {
private DfsSearchResult executeDfsPhase(ShardSearchRequest request, SearchShardTask task, boolean keepStatesInContext)
throws IOException {
ReaderContext readerContext = createOrGetReaderContext(request, keepStatesInContext);
task.addQueryGroupHeadersTo(threadPool.getThreadContext());
try (
Releasable ignored = readerContext.markAsUsed(getKeepAlive(request));
SearchContext context = createContext(readerContext, request, task, true)
Expand Down
7 changes: 0 additions & 7 deletions server/src/main/java/org/opensearch/tasks/Task.java
Original file line number Diff line number Diff line change
Expand Up @@ -278,13 +278,6 @@ public TaskId getParentTaskId() {
return parentTask;
}

/**
*
* returns the headers for this task
*/
public Map<String, String> getHeaders() {
return headers;
}

/**
* Build a status for this task or null if this task doesn't have status.
Expand Down

0 comments on commit 133ab0b

Please sign in to comment.