Skip to content

Commit

Permalink
Use underscore version of NIOPreconcurrencySendable to silence warn…
Browse files Browse the repository at this point in the history
…ing (#427)

### Motivation
`swift-nio` has deprecated `NIOPreconcurrencySendable` in `2.51.0`. Removing the protocol conformance would be an API breaking change. Keeping the conformance is low cost and not worth the risk.

### Changes
- replace `NIOPreconcurrencySendable` with underscore version `_NIOPreconcurrencySendable`

### Result
We compile again with the latest `swift-nio` release without warnings
  • Loading branch information
dnadoba authored Apr 25, 2023
1 parent 5c57d8e commit e866a62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import class Foundation.ProcessInfo
func generateDependencies() -> [Package.Dependency] {
if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
return [
.package(url: "https://github.com/apple/swift-nio.git", from: "2.42.0"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.51.0"),
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
]
} else {
Expand Down
2 changes: 1 addition & 1 deletion Sources/NIOSSL/CustomPrivateKey.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import NIOCore
/// is imposed by SwiftNIO. The calls to the protocol requirements will be made on event loop threads, so if further
/// synchronization is required it is up to the implementer to provide it. Note that it is unacceptable to block in
/// these functions, and so potentially blocking operations must delegate to another thread.
public protocol NIOSSLCustomPrivateKey: NIOPreconcurrencySendable {
public protocol NIOSSLCustomPrivateKey: _NIOPreconcurrencySendable {
/// The signature algorithms supported by this key.
var signatureAlgorithms: [SignatureAlgorithm] { get }

Expand Down

0 comments on commit e866a62

Please sign in to comment.