From 766b4b0005a158550c345671c8e7cea42af104b6 Mon Sep 17 00:00:00 2001 From: Tanner Date: Wed, 22 Jan 2020 09:50:33 -0800 Subject: [PATCH] fix deprecations (#54) --- Sources/WebSocketKit/WebSocketClient.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/WebSocketKit/WebSocketClient.swift b/Sources/WebSocketKit/WebSocketClient.swift index d26cfd18..6ee4cebf 100644 --- a/Sources/WebSocketKit/WebSocketClient.swift +++ b/Sources/WebSocketKit/WebSocketClient.swift @@ -36,7 +36,7 @@ public final class WebSocketClient { let eventLoopGroupProvider: EventLoopGroupProvider let group: EventLoopGroup let configuration: Configuration - let isShutdown = Atomic(value: false) + let isShutdown = NIOAtomic.makeAtomic(value: false) public init(eventLoopGroupProvider: EventLoopGroupProvider, configuration: Configuration = .init()) { self.eventLoopGroupProvider = eventLoopGroupProvider @@ -73,7 +73,7 @@ public final class WebSocketClient { for _ in 0..<16 { key.append(.random(in: .min ..< .max)) } - let websocketUpgrader = NIOWebClientSocketUpgrader( + let websocketUpgrader = NIOWebSocketClientUpgrader( requestKey: Data(key).base64EncodedString(), maxFrameSize: self.configuration.maxFrameSize, automaticErrorHandling: true,