Skip to content

Commit d33f0a5

Browse files
committed
fix warning regarding sendable by passing the function in a closure and not as an argument
1 parent 23636d9 commit d33f0a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

templates/swift/Sources/WebSockets/WebSocketClient.swift.twig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,9 @@ public class WebSocketClient {
246246

247247
let basicUpgrader = NIOWebSocketClientUpgrader(
248248
requestKey: self.frameKey,
249-
upgradePipelineHandler: self.upgradePipelineHandler
249+
upgradePipelineHandler: { channel, response in
250+
self.upgradePipelineHandler(channel: channel, response: response)
251+
}
250252
)
251253

252254
let config: NIOHTTPClientUpgradeConfiguration = (upgraders: [basicUpgrader], completionHandler: { context in

0 commit comments

Comments
 (0)