delete unnecessary pool
This commit is contained in:
@@ -27,7 +27,6 @@ import io.emeraldpay.dshackle.config.UpstreamsConfig
|
|||||||
import org.bouncycastle.jce.provider.BouncyCastleProvider
|
import org.bouncycastle.jce.provider.BouncyCastleProvider
|
||||||
import org.slf4j.LoggerFactory
|
import org.slf4j.LoggerFactory
|
||||||
import org.springframework.beans.factory.annotation.Autowired
|
import org.springframework.beans.factory.annotation.Autowired
|
||||||
import org.springframework.beans.factory.annotation.Qualifier
|
|
||||||
import org.springframework.boot.ExitCodeGenerator
|
import org.springframework.boot.ExitCodeGenerator
|
||||||
import org.springframework.boot.SpringApplication
|
import org.springframework.boot.SpringApplication
|
||||||
import org.springframework.context.ApplicationContext
|
import org.springframework.context.ApplicationContext
|
||||||
@@ -38,11 +37,8 @@ import org.springframework.core.env.Environment
|
|||||||
import org.springframework.scheduling.annotation.EnableAsync
|
import org.springframework.scheduling.annotation.EnableAsync
|
||||||
import org.springframework.scheduling.annotation.EnableScheduling
|
import org.springframework.scheduling.annotation.EnableScheduling
|
||||||
import org.springframework.util.ResourceUtils
|
import org.springframework.util.ResourceUtils
|
||||||
import reactor.core.scheduler.Scheduler
|
|
||||||
import reactor.core.scheduler.Schedulers
|
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.security.Security
|
import java.security.Security
|
||||||
import java.util.concurrent.Executors
|
|
||||||
import kotlin.system.exitProcess
|
import kotlin.system.exitProcess
|
||||||
|
|
||||||
@Configuration
|
@Configuration
|
||||||
@@ -95,12 +91,6 @@ open class Config(
|
|||||||
return target
|
return target
|
||||||
}
|
}
|
||||||
|
|
||||||
@Bean
|
|
||||||
@Qualifier("upstreamScheduler")
|
|
||||||
open fun upstreamScheduler(): Scheduler {
|
|
||||||
return Schedulers.fromExecutorService(Executors.newFixedThreadPool(16))
|
|
||||||
}
|
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
@Profile("!integration-test")
|
@Profile("!integration-test")
|
||||||
open fun mainConfig(@Autowired fileResolver: FileResolver): MainConfig {
|
open fun mainConfig(@Autowired fileResolver: FileResolver): MainConfig {
|
||||||
|
|||||||
Reference in New Issue
Block a user