Skip to content

Commit 97f71fe

Browse files
authored
Remove unnecessary @escaping attribute (#6)
1 parent 8f8dd9f commit 97f71fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/WSCore/WebSocketHandler.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public struct WebSocketCloseFrame: Sendable {
106106
configuration: Configuration,
107107
asyncChannel: NIOAsyncChannel<WebSocketFrame, WebSocketFrame>,
108108
context: Context,
109-
handler: @escaping WebSocketDataHandler<Context>
109+
handler: WebSocketDataHandler<Context>
110110
) async throws -> WebSocketCloseFrame? {
111111
defer {
112112
context.logger.debug("Closed WebSocket")
@@ -145,7 +145,7 @@ public struct WebSocketCloseFrame: Sendable {
145145
type: WebSocketType,
146146
inbound: NIOAsyncChannelInboundStream<WebSocketFrame>,
147147
outbound: NIOAsyncChannelOutboundWriter<WebSocketFrame>,
148-
handler: @escaping WebSocketDataHandler<Context>,
148+
handler: WebSocketDataHandler<Context>,
149149
context: Context
150150
) async throws -> WebSocketCloseFrame? {
151151
try await withGracefulShutdownHandler {

0 commit comments

Comments
 (0)