From d7a77085b51ff32ac59df5ec3e4e18fd0b4a400a Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Thu, 24 Jan 2019 10:34:31 +0800 Subject: [PATCH] remove BaseRequestsExecutor scope --- CHANGELOG | 1 + .../TelegramBotAPI/bot/BaseRequestsExecutor.kt | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-) 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