Skip to content

Commit

Permalink
make DefaultKtorRequestsExecutor now uses runCatching instead of runC…
Browse files Browse the repository at this point in the history
…atchingSafely
  • Loading branch information
InsanusMokrassar committed Oct 24, 2024
1 parent b8a6534 commit 3d14c93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3d14c93

Please sign in to comment.