Refine HttpServiceGroupConfigurer API
Closes gh-34926
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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())));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user