diff --git a/envoy-control-runner/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/infrastructure/SynchronizationConfig.kt b/envoy-control-runner/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/infrastructure/SynchronizationConfig.kt index 23b592e3a..8fc6fae13 100644 --- a/envoy-control-runner/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/infrastructure/SynchronizationConfig.kt +++ b/envoy-control-runner/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/infrastructure/SynchronizationConfig.kt @@ -5,7 +5,7 @@ import io.micrometer.core.instrument.MeterRegistry import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration -import org.springframework.core.task.SimpleAsyncTaskExecutor +// import org.springframework.core.task.SimpleAsyncTaskExecutor import org.springframework.http.client.SimpleClientHttpRequestFactory import org.springframework.web.client.RestTemplate import pl.allegro.tech.discovery.consul.recipes.datacenter.ConsulDatacenterReader @@ -29,7 +29,7 @@ class SynchronizationConfig { envoyControlProperties: EnvoyControlProperties ): RestTemplate { val requestFactory = SimpleClientHttpRequestFactory() - requestFactory.setTaskExecutor(SimpleAsyncTaskExecutor()) + // requestFactory.setTaskExecutor(SimpleAsyncTaskExecutor()) // todo: fix this, use webclient? requestFactory.setConnectTimeout(envoyControlProperties.sync.connectionTimeout.toMillis().toInt()) requestFactory.setReadTimeout(envoyControlProperties.sync.readTimeout.toMillis().toInt())