1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-21 15:53:47 +00:00

make DefaultKtorRequestsExecutor now uses runCatching instead of runCatchingSafely

This commit is contained in:
InsanusMokrassar 2024-10-24 22:53:34 +06:00
parent b8a6534b6a
commit 3d14c93d89
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@
* `Core`:
* Add default middleware `ExceptionsThrottlerTelegramBotMiddleware`
* Make `TelegramBotMiddlewaresPipelinesHandler` to be default `TelegramBotPipelinesHandler`
* Make `DefaultKtorRequestsExecutor` now uses `runCatching` instead of `runCatchingSafely`
## 18.2.2

View File

@ -47,7 +47,7 @@ class DefaultKtorRequestsExecutor internal constructor(
}
override suspend fun <T : Any> execute(request: Request<T>): T {
return runCatchingSafely {
return runCatching {
logger.v { "Start request $request" }
pipelineStepsHolder.onBeforeSearchCallFactory(request, callsFactories)
requestsLimiter.limit(request) {