Skip to content

Commit

Permalink
Fix compiltaion issues in Swift 5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTim committed Oct 23, 2021
1 parent 4ef4e9a commit d9dcaec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.33.0"),
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
Expand All @@ -24,6 +25,9 @@ let package = Package(
name: "ElasticsearchNIOClient",
dependencies: [
.product(name: "AsyncHTTPClient", package: "async-http-client"),
.product(name: "NIOCore", package: "swift-nio"),
.product(name: "NIOHTTP1", package: "swift-nio"),
.product(name: "NIOFoundationCompat", package: "swift-nio"),
]),
.testTarget(
name: "ElasticsearchNIOClientTests",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Foundation
import NIO
import NIOHTTP1
import NIOFoundationCompat

extension ElasticsearchClient {
public func get<Document: Decodable>(id: String, from indexName: String) -> EventLoopFuture<ESGetSingleDocumentResponse<Document>> {
Expand Down
1 change: 1 addition & 0 deletions Sources/ElasticsearchNIOClient/ElasticsearchClient.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import NIO
import NIOFoundationCompat
import AsyncHTTPClient
import Foundation
import Logging
Expand Down

0 comments on commit d9dcaec

Please sign in to comment.