Skip to content

Commit

Permalink
Remove unnecessary @escaping attribute (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler authored Nov 19, 2024
1 parent 8f8dd9f commit 97f71fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/WSCore/WebSocketHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public struct WebSocketCloseFrame: Sendable {
configuration: Configuration,
asyncChannel: NIOAsyncChannel<WebSocketFrame, WebSocketFrame>,
context: Context,
handler: @escaping WebSocketDataHandler<Context>
handler: WebSocketDataHandler<Context>
) async throws -> WebSocketCloseFrame? {
defer {
context.logger.debug("Closed WebSocket")
Expand Down Expand Up @@ -145,7 +145,7 @@ public struct WebSocketCloseFrame: Sendable {
type: WebSocketType,
inbound: NIOAsyncChannelInboundStream<WebSocketFrame>,
outbound: NIOAsyncChannelOutboundWriter<WebSocketFrame>,
handler: @escaping WebSocketDataHandler<Context>,
handler: WebSocketDataHandler<Context>,
context: Context
) async throws -> WebSocketCloseFrame? {
try await withGracefulShutdownHandler {
Expand Down

0 comments on commit 97f71fe

Please sign in to comment.