Skip to content

fix NIO deprecations & update to secure versions #141

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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