@Bean
ShardingPublisherStrategy shardingPublisherStrategy(
ChatBackendProperties properties,
- WebClient webClient)
+ WebClient.Builder webClientBuilder)
{
+ String baseUrl = properties.getHaproxyRuntimeApiUri().toASCIIString();
+ WebClient webClient = webClientBuilder.baseUrl(baseUrl).build();
return new HaproxyShardingPublisherStrategy(
- properties.getHaproxyRuntimeApiUri(),
+ properties.getHaproxyInstanceId(),
webClient);
}