mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 00:03:48 +00:00
make DefaultKtorRequestsExecutor now uses runCatching instead of runCatchingSafely
This commit is contained in:
parent
b8a6534b6a
commit
3d14c93d89
@ -5,6 +5,7 @@
|
|||||||
* `Core`:
|
* `Core`:
|
||||||
* Add default middleware `ExceptionsThrottlerTelegramBotMiddleware`
|
* Add default middleware `ExceptionsThrottlerTelegramBotMiddleware`
|
||||||
* Make `TelegramBotMiddlewaresPipelinesHandler` to be default `TelegramBotPipelinesHandler`
|
* Make `TelegramBotMiddlewaresPipelinesHandler` to be default `TelegramBotPipelinesHandler`
|
||||||
|
* Make `DefaultKtorRequestsExecutor` now uses `runCatching` instead of `runCatchingSafely`
|
||||||
|
|
||||||
## 18.2.2
|
## 18.2.2
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ class DefaultKtorRequestsExecutor internal constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
override suspend fun <T : Any> execute(request: Request<T>): T {
|
override suspend fun <T : Any> execute(request: Request<T>): T {
|
||||||
return runCatchingSafely {
|
return runCatching {
|
||||||
logger.v { "Start request $request" }
|
logger.v { "Start request $request" }
|
||||||
pipelineStepsHolder.onBeforeSearchCallFactory(request, callsFactories)
|
pipelineStepsHolder.onBeforeSearchCallFactory(request, callsFactories)
|
||||||
requestsLimiter.limit(request) {
|
requestsLimiter.limit(request) {
|
||||||
|
Loading…
Reference in New Issue
Block a user