[Watcher] Remove line that accidentally sneaked in
Original commit: elastic/x-pack-elasticsearch@e63b1942ca
This commit is contained in:
parent
434dc94eb2
commit
4082d6fa48
|
@ -41,7 +41,6 @@ public class WatcherClientHelper {
|
|||
} else {
|
||||
try (ThreadContext.StoredContext ignored = client.threadPool().getThreadContext().stashContext()) {
|
||||
Map<String, String> filteredHeaders = watch.status().getHeaders().entrySet().stream()
|
||||
.filter(Watcher.HEADER_FILTERS::contains)
|
||||
.filter(e -> Watcher.HEADER_FILTERS.contains(e.getKey()))
|
||||
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
|
||||
client.threadPool().getThreadContext().copyHeaders(filteredHeaders.entrySet());
|
||||
|
|
Loading…
Reference in New Issue