[Watcher] Remove line that accidentally sneaked in

Original commit: elastic/x-pack-elasticsearch@e63b1942ca
This commit is contained in:
Dimitrios Athanasiou 2017-12-08 13:47:53 +00:00
parent 434dc94eb2
commit 4082d6fa48
1 changed files with 0 additions and 1 deletions

View File

@ -41,7 +41,6 @@ public class WatcherClientHelper {
} else { } else {
try (ThreadContext.StoredContext ignored = client.threadPool().getThreadContext().stashContext()) { try (ThreadContext.StoredContext ignored = client.threadPool().getThreadContext().stashContext()) {
Map<String, String> filteredHeaders = watch.status().getHeaders().entrySet().stream() Map<String, String> filteredHeaders = watch.status().getHeaders().entrySet().stream()
.filter(Watcher.HEADER_FILTERS::contains)
.filter(e -> Watcher.HEADER_FILTERS.contains(e.getKey())) .filter(e -> Watcher.HEADER_FILTERS.contains(e.getKey()))
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)); .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
client.threadPool().getThreadContext().copyHeaders(filteredHeaders.entrySet()); client.threadPool().getThreadContext().copyHeaders(filteredHeaders.entrySet());