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:
Gary Russell
2020-09-17 12:33:29 -04:00
committed by Oleg Zhurakousky
parent e39487a4ce
commit 765e19d761

View File

@@ -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;
}