mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 00:03:48 +00:00
fix of #860
This commit is contained in:
parent
fb3b8a7415
commit
f85d4a36e1
@ -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
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user