Commit bd38893f authored by Phillip Webb's avatar Phillip Webb

Rename rabbitHealthIndicator bean

Rename the rabbitHealthIndicator bean which was accidentally named
redisHealthIndicator.
parent 0402ed38
...@@ -149,7 +149,7 @@ public class HealthIndicatorAutoConfiguration { ...@@ -149,7 +149,7 @@ public class HealthIndicatorAutoConfiguration {
@Bean @Bean
@ConditionalOnMissingBean(name = "rabbitHealthIndicator") @ConditionalOnMissingBean(name = "rabbitHealthIndicator")
public HealthIndicator<?> redisHealthIndicator() { public HealthIndicator<?> rabbitHealthIndicator() {
if (this.rabbitTemplates.size() == 1) { if (this.rabbitTemplates.size() == 1) {
return new RabbitHealthIndicator(this.rabbitTemplates.values().iterator() return new RabbitHealthIndicator(this.rabbitTemplates.values().iterator()
.next()); .next());
......
/* /*
* Copyright 2014 the original author or authors. * Copyright 2012-2014 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
......
Markdown is supported
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