Skip to content

Commit

Permalink
Remove redundant toClose.add for IndicesService
Browse files Browse the repository at this point in the history
  • Loading branch information
ywangd committed Oct 14, 2024
1 parent 209ee0c commit 9f4a792
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion server/src/main/java/org/elasticsearch/node/Node.java
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,6 @@ public synchronized void close() throws IOException {
toClose.add(() -> stopWatch.stop().start("transport"));
toClose.add(injector.getInstance(TransportService.class));
toClose.add(injector.getInstance(NodeMetrics.class));
toClose.add(injector.getInstance(IndicesService.class));
if (ReadinessService.enabled(environment)) {
toClose.add(injector.getInstance(ReadinessService.class));
}
Expand Down

0 comments on commit 9f4a792

Please sign in to comment.