diff --git a/CHANGELOG b/CHANGELOG index 442914cbae..0e9898854b 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -48,3 +48,4 @@ * Old extension `OkHttpClient.Builder#useWith` now deprecated and must be replaced by the same in `com.github.insanusmokrassar.TelegramBotAPI.bot.Ktor` package * Replace `ProxySettings` data class in `settings` package, deprecate old link +* `BaseRequestsExecutor` now have no it's own scope diff --git a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/bot/BaseRequestsExecutor.kt b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/bot/BaseRequestsExecutor.kt index dd1ac11d42..abaf662aa4 100644 --- a/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/bot/BaseRequestsExecutor.kt +++ b/src/main/kotlin/com/github/insanusmokrassar/TelegramBotAPI/bot/BaseRequestsExecutor.kt @@ -1,16 +1,8 @@ package com.github.insanusmokrassar.TelegramBotAPI.bot -import kotlinx.coroutines.CoroutineScope -import kotlinx.coroutines.asCoroutineDispatcher -import java.util.concurrent.Executors - abstract class BaseRequestsExecutor( token: String, hostUrl: String = "https://api.telegram.org" ) : RequestsExecutor { protected val baseUrl: String = "$hostUrl/bot$token" - - protected val scope: CoroutineScope = CoroutineScope( - Executors.newSingleThreadExecutor().asCoroutineDispatcher() - ) } \ No newline at end of file