Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
whyoleg committed Nov 8, 2024
1 parent 082c044 commit c94816f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public fun CoroutineScope.httpServer(
val selector = SelectorManager(coroutineContext)
val timeout = settings.connectionIdleTimeoutSeconds.seconds


val acceptJob = launch(serverJob + CoroutineName("accept-${settings.port}")) {
aSocket(selector).tcp().bind(settings.host, settings.port) {
reuseAddress = settings.reuseAddress
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ internal fun CoroutineScope.socketTimeoutKiller(socketTimeoutMillis: Long, job:

@OptIn(InternalAPI::class)
internal fun Throwable.mapToKtor(data: HttpRequestData): Throwable = when {
this is NetworkSocketTimeoutException -> SocketTimeoutException(data, this)
this is NetworkSocketTimeoutException -> SocketTimeoutException(data, this)
cause?.rootCause is NetworkSocketTimeoutException -> SocketTimeoutException(data, cause?.rootCause)
else -> this
else -> this
}

0 comments on commit c94816f

Please sign in to comment.