Skip to content

Commit

Permalink
Update dependencies (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanner0101 authored Aug 26, 2020
1 parent 5be2962 commit e304056
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ let package = Package(
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.4.0"),
.package(url: "https://github.com/apple/swift-nio-http2.git", from: "1.6.0"),
.package(url: "https://github.com/apple/swift-nio-http2.git", from: "1.13.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
.package(url: "https://github.com/vapor/jwt-kit.git", from: "4.0.0-rc"),
.package(url: "https://github.com/vapor/jwt-kit.git", from: "4.0.0"),
],
targets: [
.target(name: "APNSwiftExample", dependencies: [
Expand Down
1 change: 1 addition & 0 deletions Sources/APNSwift/APNSSwiftJWT/APNSwiftJWTError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
//===----------------------------------------------------------------------===//

import Foundation

internal enum APNSwiftJWTError {
case encodingFailed
case tokenWasNotGeneratedCorrectly
Expand Down
6 changes: 3 additions & 3 deletions Sources/APNSwift/APNSwiftConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public final class APNSwiftConnection: APNSwiftClient {
sslHandler,
WaitForTLSUpHandler(allDonePromise: connectionFullyUpPromise)
]).flatMap {
channel.configureHTTP2Pipeline(mode: .client) { channel, _ in
channel.configureHTTP2Pipeline(mode: .client) { channel in
let error = UnsupportedServerPushError()
logger?.warning("Connection - failed \(error)")
return channel.eventLoop.makeFailedFuture(error)
Expand Down Expand Up @@ -173,9 +173,9 @@ public final class APNSwiftConnection: APNSwiftClient {
let logger = logger ?? self.configuration.logger
logger?.debug("Send - starting up")
let streamPromise = self.channel.eventLoop.makePromise(of: Channel.self)
self.multiplexer.createStreamChannel(promise: streamPromise) { channel, streamID in
self.multiplexer.createStreamChannel(promise: streamPromise) { channel in
let handlers: [ChannelHandler] = [
HTTP2ToHTTP1ClientCodec(streamID: streamID, httpProtocol: .https),
HTTP2FramePayloadToHTTP1ClientCodec(httpProtocol: .https),
APNSwiftRequestEncoder(
deviceToken: deviceToken,
configuration: self.configuration,
Expand Down
1 change: 1 addition & 0 deletions Sources/APNSwift/APNSwiftResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import Foundation
import NIO
import NIOHTTP1

/// This structure is for managing the response from Apples push notification service.
internal struct APNSwiftResponse: Equatable {
public var header: HTTPResponseHead
Expand Down

0 comments on commit e304056

Please sign in to comment.