Skip to content

Commit

Permalink
Fix Swift 6 warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhrobkhakimov committed May 14, 2024
1 parent aaf85f1 commit 0c28531
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/HTTP/Server/Handler/RequestResponseHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ final class RequestResponseHandler: ChannelInboundHandler {

let response = try await middleware[index].handle(request: request) { request in
if index == lastIndex {
return await handle(request: request, response: response)
return await self.handle(request: request, response: response)
}

return try await handle(
return try await self.handle(
request: request,
response: response,
middleware: middleware,
Expand Down

0 comments on commit 0c28531

Please sign in to comment.