Skip to content

Commit d9dcaec

Browse files
committed
Fix compiltaion issues in Swift 5.5
1 parent 4ef4e9a commit d9dcaec

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

Package.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ let package = Package(
1616
],
1717
dependencies: [
1818
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.0.0"),
19+
.package(url: "https://github.com/apple/swift-nio.git", from: "2.33.0"),
1920
],
2021
targets: [
2122
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
@@ -24,6 +25,9 @@ let package = Package(
2425
name: "ElasticsearchNIOClient",
2526
dependencies: [
2627
.product(name: "AsyncHTTPClient", package: "async-http-client"),
28+
.product(name: "NIOCore", package: "swift-nio"),
29+
.product(name: "NIOHTTP1", package: "swift-nio"),
30+
.product(name: "NIOFoundationCompat", package: "swift-nio"),
2731
]),
2832
.testTarget(
2933
name: "ElasticsearchNIOClientTests",

Sources/ElasticsearchNIOClient/ElasticsearchClient+Requests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Foundation
22
import NIO
33
import NIOHTTP1
4+
import NIOFoundationCompat
45

56
extension ElasticsearchClient {
67
public func get<Document: Decodable>(id: String, from indexName: String) -> EventLoopFuture<ESGetSingleDocumentResponse<Document>> {

Sources/ElasticsearchNIOClient/ElasticsearchClient.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import NIO
2+
import NIOFoundationCompat
23
import AsyncHTTPClient
34
import Foundation
45
import Logging

0 commit comments

Comments
 (0)