Skip to content
Snippets Groups Projects
Commit 0069e8ca authored by Ludovic Claude's avatar Ludovic Claude
Browse files

Rename to wokenCluster, conflict in Spring bean names

parent efca4218
No related branches found
Tags 2.7.6
No related merge requests found
......@@ -15,13 +15,13 @@ public class AkkaClusterHealthCheck implements HealthIndicator {
private ActorRef wokenMediator;
@Autowired
private Cluster cluster;
private Cluster wokenCluster;
@Override
public Health health() {
if (cluster.state().getLeader() == null) {
if (wokenCluster.state().getLeader() == null) {
return Health.down().withDetail("Error", "No leader in the cluster").build();
} else if (!cluster.state().allRoles().contains("woken")) {
} else if (!wokenCluster.state().allRoles().contains("woken")) {
return Health.down().withDetail("Error", "Woken server cannot be seen in the cluster").build();
}
return Health.up().build();
......
......@@ -49,7 +49,7 @@ class AkkaConfiguration {
}
@Bean
public Cluster cluster() {
public Cluster wokenCluster() {
return new Cluster(actorSystem());
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment