mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-12-23 00:57:13 +00:00
replace TODO for pipelineStepsHolder with default realization
This commit is contained in:
parent
08ef146daa
commit
ff2d1615da
@ -58,7 +58,7 @@ class KtorRequestsExecutor(
|
||||
excludeDefaultFactories: Boolean = false,
|
||||
private val requestsLimiter: RequestLimiter = ExceptionsOnlyLimiter(),
|
||||
private val jsonFormatter: Json = nonstrictJsonFormat,
|
||||
private val pipelineStepsHolder: KtorPipelineStepsHolder = TODO()
|
||||
private val pipelineStepsHolder: KtorPipelineStepsHolder = KtorPipelineStepsHolder
|
||||
) : BaseRequestsExecutor(telegramAPIUrlsKeeper) {
|
||||
private val callsFactories: List<KtorCallFactory> = callsFactories.run {
|
||||
if (!excludeDefaultFactories) {
|
||||
|
@ -70,4 +70,6 @@ interface KtorPipelineStepsHolder {
|
||||
request: Request<T>,
|
||||
callsFactories: List<KtorCallFactory>
|
||||
): T = result.getOrThrow()
|
||||
|
||||
companion object : KtorPipelineStepsHolder
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user