mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Cleanup: removed unused method.
Original commit: elastic/x-pack-elasticsearch@5dd9126d71
This commit is contained in:
parent
6a5c86e46c
commit
a3825aa242
@ -201,19 +201,6 @@ public class AlertsService extends AbstractComponent {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return once a cluster state version appears that is never than the version
|
||||
*/
|
||||
private ClusterState newClusterState(ClusterState previous) {
|
||||
ClusterState current;
|
||||
while (true) {
|
||||
current = clusterService.state();
|
||||
if (current.getVersion() > previous.getVersion()) {
|
||||
return current;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private final class AlertsClusterStateListener implements ClusterStateListener {
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user