[fleet] FL-32265 make completeWithResult multiplatform

(cherry picked from commit 199e207004e3eeaa89e3f73c64ab609a230ab3cf)

FLEET-CR-5747

GitOrigin-RevId: 48632c4ef3bc0e8c55b2560b7e91f188b26b1833
This commit is contained in:
Sergei Sysoev
2025-02-13 01:19:29 +01:00
committed by intellij-monorepo-bot
parent e381284d13
commit 617ac5e173
2 changed files with 0 additions and 2 deletions

View File

@@ -20,7 +20,6 @@ private fun CompletableSpan.completeWithResult(result: Result<*>) {
}.onFailure { ex ->
when (ex) {
is CancellationException -> complete(SpanStatus.Cancelled, null)
is InterruptedException -> complete(SpanStatus.Cancelled, null)
else -> complete(SpanStatus.Failed(ex), null)
}
}

View File

@@ -17,7 +17,6 @@ fun CompletableSpan.completeWithResult(result: Result<*>) {
}.onFailure { ex ->
when (ex) {
is CancellationException -> complete(SpanStatus.Cancelled, null)
is InterruptedException -> complete(SpanStatus.Cancelled, null)
else -> complete(SpanStatus.Failed(ex), null)
}
}