Skip to content

Commit

Permalink
chore: replace deprecations (#3933)
Browse files Browse the repository at this point in the history
  • Loading branch information
ulischulte authored Dec 20, 2024
1 parent b90a11f commit f580717
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ public static class BlockingRegistrationClientConfig {
@Bean
@ConditionalOnMissingBean
public RegistrationClient registrationClient(ClientProperties client) {
RestTemplateBuilder builder = new RestTemplateBuilder().setConnectTimeout(client.getConnectTimeout())
.setReadTimeout(client.getReadTimeout());
RestTemplateBuilder builder = new RestTemplateBuilder().connectTimeout(client.getConnectTimeout())
.readTimeout(client.getReadTimeout());

if (client.getUsername() != null && client.getPassword() != null) {
builder = builder.basicAuthentication(client.getUsername(), client.getPassword());
Expand Down

0 comments on commit f580717

Please sign in to comment.