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 29, 2023
1 parent c9f2b29 commit 3c9541e
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 3c9541e

Please sign in to comment.