Remove TODO from binder config
Even though Boot auto-configures a `ConnectionNameStrategy` we cannot remove it from the binder configuration because Boot auto-configuration runs before the binder configuration. Resolves #306
This commit is contained in:
committed by
Oleg Zhurakousky
parent
e39487a4ce
commit
765e19d761
@@ -123,7 +123,6 @@ public class RabbitMessageChannelBinderConfiguration {
|
||||
final AtomicInteger nameIncrementer = new AtomicInteger();
|
||||
ConnectionNameStrategy namer = f -> this.rabbitBinderConfigurationProperties
|
||||
.getConnectionNamePrefix() + "#" + nameIncrementer.getAndIncrement();
|
||||
// TODO: this can be removed when Boot 2.0.1 wires it in
|
||||
cf.setConnectionNameStrategy(namer);
|
||||
return namer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user