diff --git a/Package.swift b/Package.swift index 72b0f4c..6e00f3a 100644 --- a/Package.swift +++ b/Package.swift @@ -2,7 +2,7 @@ import PackageDescription let package = Package( - name: "SendGrid", + name: "sendgrid", platforms: [ .macOS(.v10_15) ], @@ -10,7 +10,7 @@ let package = Package( .library(name: "SendGrid", targets: ["SendGrid"]) ], dependencies: [ - .package(url: "https://github.com/vapor/vapor.git", from: "4.0.0-rc"), + .package(url: "https://github.com/vapor/vapor.git", from: "4.0.0"), .package(url: "https://github.com/vapor-community/sendgrid-kit.git", from: "1.0.0"), ], targets: [ diff --git a/Sources/SendGrid/Application+SendGrid.swift b/Sources/SendGrid/Application+SendGrid.swift index 117906d..ec61dc6 100644 --- a/Sources/SendGrid/Application+SendGrid.swift +++ b/Sources/SendGrid/Application+SendGrid.swift @@ -32,7 +32,9 @@ extension Application { fileprivate let application: Application - public var client: SendGridClient { .init(httpClient: self.application.client.http, apiKey: self.storage.apiKey) } + public var client: SendGridClient { + .init(httpClient: self.application.http.client.shared, apiKey: self.storage.apiKey) + } } public var sendgrid: Sendgrid { .init(application: self) }