Refine HttpServiceGroupConfigurer API

Closes gh-34926
This commit is contained in:
rstoyanchev
2025-05-19 18:08:46 +01:00
parent 1ea8a91b85
commit 2e086bd727
5 changed files with 56 additions and 53 deletions

View File

@@ -138,7 +138,7 @@ public class RestClientProxyRegistryIntegrationTests {
@Bean
public RestClientHttpServiceGroupConfigurer groupConfigurer() {
return groups -> groups.filterByName("echo", "greeting")
.configureClient((group, builder) -> builder.baseUrl("http://localhost:9090"));
.forEachClient((group, builder) -> builder.baseUrl("http://localhost:9090"));
}
}

View File

@@ -92,7 +92,7 @@ public class HttpServiceProxyRegistryFactoryBeanTests {
@Override
public void configureGroups(Groups<RestClient.Builder> groups) {
filters.forEach(filter -> groups.filter(filter)
.configureClient((group, builder) -> invocations.add(filter, group.name())));
.forEachClient((group, builder) -> invocations.add(filter, group.name())));
}
}