Skip to content

Commit

Permalink
sync config WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
kozjan committed Aug 28, 2023
1 parent 2b53045 commit 2d73742
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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())

Expand Down

0 comments on commit 2d73742

Please sign in to comment.