Skip to content

Commit

Permalink
fix NIO deprecations & update to secure versions (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
weissi authored Dec 10, 2019
1 parent de4d1ad commit 48e284d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ let package = Package(
.library(name: "AsyncHTTPClient", targets: ["AsyncHTTPClient"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-nio.git", from: "2.10.1"),
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.0.0"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.11.0"),
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.4.1"),
.package(url: "https://github.com/apple/swift-nio-extras.git", from: "1.3.0"),
],
targets: [
Expand Down
2 changes: 1 addition & 1 deletion Sources/AsyncHTTPClient/HTTPClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class HTTPClient {
public let eventLoopGroup: EventLoopGroup
let eventLoopGroupProvider: EventLoopGroupProvider
let configuration: Configuration
let isShutdown = Atomic<Bool>(value: false)
let isShutdown = NIOAtomic<Bool>.makeAtomic(value: false)

/// Create an `HTTPClient` with specified `EventLoopGroup` provider and configuration.
///
Expand Down
2 changes: 1 addition & 1 deletion Tests/AsyncHTTPClientTests/HTTPClientTestUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ internal final class RecordingHandler<Input, Output>: ChannelDuplexHandler {
internal final class HTTPBin {
let group = MultiThreadedEventLoopGroup(numberOfThreads: 1)
let serverChannel: Channel
let isShutdown: Atomic<Bool> = .init(value: false)
let isShutdown: NIOAtomic<Bool> = .makeAtomic(value: false)

var port: Int {
return Int(self.serverChannel.localAddress!.port!)
Expand Down

0 comments on commit 48e284d

Please sign in to comment.