Skip to content

Commit 7714110

Browse files
committed
Polishing in DefaultWebClient
1 parent 75d1278 commit 7714110

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

spring-webflux/src/main/java/org/springframework/web/reactive/function/client/DefaultWebClient.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ final class DefaultWebClient implements WebClient {
7979
private static final Mono<ClientResponse> NO_HTTP_CLIENT_RESPONSE_ERROR = Mono.error(
8080
() -> new IllegalStateException("The underlying HTTP client completed without emitting a response."));
8181

82-
private static final DefaultClientRequestObservationConvention DEFAULT_OBSERVATION_CONVENTION = new DefaultClientRequestObservationConvention();
82+
private static final DefaultClientRequestObservationConvention DEFAULT_OBSERVATION_CONVENTION =
83+
new DefaultClientRequestObservationConvention();
84+
8385

8486
private final ExchangeFunction exchangeFunction;
8587

@@ -119,10 +121,10 @@ final class DefaultWebClient implements WebClient {
119121
this.uriBuilderFactory = uriBuilderFactory;
120122
this.defaultHeaders = defaultHeaders;
121123
this.defaultCookies = defaultCookies;
122-
this.observationRegistry = observationRegistry;
123-
this.observationConvention = observationConvention;
124124
this.defaultRequest = defaultRequest;
125125
this.defaultStatusHandlers = initStatusHandlers(statusHandlerMap);
126+
this.observationRegistry = observationRegistry;
127+
this.observationConvention = observationConvention;
126128
this.builder = builder;
127129
}
128130

0 commit comments

Comments
 (0)