1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 08:13:47 +00:00
This commit is contained in:
InsanusMokrassar 2024-11-11 13:14:28 +06:00
parent fb3b8a7415
commit f85d4a36e1
2 changed files with 11 additions and 11 deletions

View File

@ -34,14 +34,14 @@ class KtorRequestsExecutorBuilder(
} }
fun build() = KtorRequestsExecutor( fun build() = KtorRequestsExecutor(
telegramAPIUrlsKeeper, telegramAPIUrlsKeeper = telegramAPIUrlsKeeper,
client, client = client,
callsFactories, callsFactories = callsFactories,
excludeDefaultFactories, excludeDefaultFactories = excludeDefaultFactories,
requestsLimiter, requestsLimiter = requestsLimiter,
jsonFormatter, jsonFormatter = jsonFormatter,
pipelineStepsHolder, pipelineStepsHolder = pipelineStepsHolder,
logger logger = logger
) )
} }

View File

@ -32,10 +32,10 @@ class DefaultKtorRequestsExecutor internal constructor(
) : BaseRequestsExecutor(telegramAPIUrlsKeeper) { ) : BaseRequestsExecutor(telegramAPIUrlsKeeper) {
private val callsFactories: List<KtorCallFactory> = callsFactories.run { private val callsFactories: List<KtorCallFactory> = callsFactories.run {
if (!excludeDefaultFactories) { if (!excludeDefaultFactories) {
logger.v { "Installing default factories" } this@DefaultKtorRequestsExecutor.logger.v { "Installing default factories" }
this + createTelegramBotDefaultKtorCallRequestsFactories(logger) this + createTelegramBotDefaultKtorCallRequestsFactories(this@DefaultKtorRequestsExecutor.logger)
} else { } else {
logger.v { "Default factories will not be installed" } this@DefaultKtorRequestsExecutor.logger.v { "Default factories will not be installed" }
this this
} }
} }