1
0
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:
InsanusMokrassar 2022-04-16 23:58:24 +06:00
parent 08ef146daa
commit ff2d1615da
2 changed files with 3 additions and 1 deletions

View File

@ -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) {

View File

@ -70,4 +70,6 @@ interface KtorPipelineStepsHolder {
request: Request<T>,
callsFactories: List<KtorCallFactory>
): T = result.getOrThrow()
companion object : KtorPipelineStepsHolder
}