[fleet] throw CE on transactor termination

GitOrigin-RevId: c2a70c26a4c2a35f13c13c00e4c14b4df6f8c7c9
This commit is contained in:
Daniil Ovchinnikov
2024-08-30 15:01:37 +02:00
committed by intellij-monorepo-bot
parent e21c62f888
commit 860837cd20

View File

@@ -395,7 +395,7 @@ suspend fun withTransactor(
}
is TransactorEvent.TheEnd -> {
currentCoroutineContext().ensureActive()
throw RuntimeException("Kernel is terminated", event.reason)
throw CancellationException("Transactor is terminated", event.reason)
}
}
}