Skip to content

Commit

Permalink
fix deprecations (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanner0101 authored Jan 22, 2020
1 parent f8ff2c1 commit 766b4b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/WebSocketKit/WebSocketClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public final class WebSocketClient {
let eventLoopGroupProvider: EventLoopGroupProvider
let group: EventLoopGroup
let configuration: Configuration
let isShutdown = Atomic<Bool>(value: false)
let isShutdown = NIOAtomic.makeAtomic(value: false)

public init(eventLoopGroupProvider: EventLoopGroupProvider, configuration: Configuration = .init()) {
self.eventLoopGroupProvider = eventLoopGroupProvider
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 766b4b0

Please sign in to comment.