Commit c91813f
committed
Removes support for null TransportService in RemoteClusterService
This change is a follow up to elastic#137406, removing a null check
around the TransportService instance when registering the metric.
This was only needed for a few test cases in the
RemoteClusterServiceTests where a null instance was passed to the
constructor. The change also cleans up the code for creating the
TransportService instances in the test, cutting down on the LOC.
Relates: elastic#1374061 parent 2eb25be commit c91813f
File tree
2 files changed
+93
-432
lines changed- server/src
- main/java/org/elasticsearch/transport
- test/java/org/elasticsearch/transport
2 files changed
+93
-432
lines changedLines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
110 | 108 | | |
111 | 109 | | |
112 | 110 | | |
| |||
0 commit comments