Skip to content

Commit 91d80ee

Browse files
committed
Bumping versions
1 parent 9f08df1 commit 91d80ee

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

spring-cloud-commons/src/main/java/org/springframework/cloud/client/loadbalancer/LoadBalancerAutoConfiguration.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public RestTemplateCustomizer restTemplateCustomizer(LoadBalancerInterceptor loa
121121
@Bean
122122
@ConditionalOnMissingBean
123123
public RestClientBuilderCustomizer restClientBuilderCustomizer(
124-
LoadBalancerInterceptor loadBalancerInterceptor) {
124+
LoadBalancerInterceptor loadBalancerInterceptor) {
125125
return restClientBuilder -> restClientBuilder.requestInterceptor(loadBalancerInterceptor);
126126
}
127127

@@ -181,8 +181,7 @@ public RetryLoadBalancerInterceptor loadBalancerInterceptor(LoadBalancerClient l
181181

182182
@Bean
183183
@ConditionalOnMissingBean
184-
public RestTemplateCustomizer restTemplateCustomizer(
185-
RetryLoadBalancerInterceptor loadBalancerInterceptor) {
184+
public RestTemplateCustomizer restTemplateCustomizer(RetryLoadBalancerInterceptor loadBalancerInterceptor) {
186185
return restTemplate -> {
187186
List<ClientHttpRequestInterceptor> list = new ArrayList<>(restTemplate.getInterceptors());
188187
list.add(loadBalancerInterceptor);

spring-cloud-commons/src/main/java/org/springframework/cloud/client/loadbalancer/LoadBalancerInterceptor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ public LoadBalancerInterceptor(LoadBalancerClient loadBalancer) {
4848
}
4949

5050
@Override
51-
public ClientHttpResponse intercept(HttpRequest request, byte[] body,
52-
ClientHttpRequestExecution execution) throws IOException {
51+
public ClientHttpResponse intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution)
52+
throws IOException {
5353
URI originalUri = request.getURI();
5454
String serviceName = originalUri.getHost();
5555
Assert.state(serviceName != null, "Request URI does not contain a valid hostname: " + originalUri);

0 commit comments

Comments
 (0)