SUPPORT-8529: fix timeout duration
This commit is contained in:
parent
585c79d3e6
commit
fad38c6b15
2 changed files with 4 additions and 4 deletions
|
|
@ -76,9 +76,9 @@ public class AppConfig {
|
||||||
@Bean
|
@Bean
|
||||||
public RestTemplate restTemplate() {
|
public RestTemplate restTemplate() {
|
||||||
RequestConfig requestConfig = RequestConfig.custom()
|
RequestConfig requestConfig = RequestConfig.custom()
|
||||||
.setSocketTimeout(socketTimeout)
|
.setSocketTimeout(socketTimeout * 1000)
|
||||||
.setConnectionRequestTimeout(connectionTimeout)
|
.setConnectionRequestTimeout(connectionTimeout * 1000)
|
||||||
.setConnectTimeout(connectionTimeout)
|
.setConnectTimeout(connectionTimeout * 1000)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
CloseableHttpClient httpClient = HttpClients.custom()
|
CloseableHttpClient httpClient = HttpClients.custom()
|
||||||
|
|
|
||||||
|
|
@ -17,9 +17,9 @@ import java.util.List;
|
||||||
@Service
|
@Service
|
||||||
public class ConfigExecutorService {
|
public class ConfigExecutorService {
|
||||||
|
|
||||||
|
private static final Logger LOGGER = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
|
||||||
private final RestTemplate restTemplate;
|
private final RestTemplate restTemplate;
|
||||||
private final String url;
|
private final String url;
|
||||||
private static final Logger LOGGER = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
|
|
||||||
|
|
||||||
public ConfigExecutorService(@Autowired RestTemplate restTemplate,
|
public ConfigExecutorService(@Autowired RestTemplate restTemplate,
|
||||||
@Value("${config-data-executor.url}") String url) {
|
@Value("${config-data-executor.url}") String url) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue