remove BaseRequestsExecutor scope

This commit is contained in:
InsanusMokrassar committed 2019-01-24 10:34:48 +08:00
1 parent 58684ee57e
commit d7a77085b5
2 files changed
+1 -8

No files matched your search

@@ -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()
)
}