Skip to content

Commit d62af87

Browse files
author
Pushkar N Kulkarni
authored
Update Kitura-NIO version (#44)
* Update Kitura-NIO version * Fix warnings
1 parent c329ac8 commit d62af87

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ let package = Package(
2929
],
3030
dependencies: [
3131
// Dependencies declare other packages that this package depends on.
32-
.package(url: "https://github.com/IBM-Swift/Kitura-NIO.git", from: "2.0.0"),
32+
.package(url: "https://github.com/IBM-Swift/Kitura-NIO.git", from: "2.2.0"),
3333
.package(url: "https://github.com/IBM-Swift/BlueCryptor.git", from: "1.0.0"),
3434
],
3535
targets: [

Sources/KituraWebSocket/WebSocketConnection.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ extension WebSocketConnection: ChannelInboundHandler {
193193
}
194194

195195
case .connectionClose:
196-
if context != nil {
196+
if self.context != nil {
197197
let reasonCode: WebSocketErrorCode
198198
var description: String?
199199
if frame.length >= 2 && frame.length < 126 {

Tests/KituraWebSocketTests/KituraTest.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,5 @@ extension Bool {
246246
}
247247
}
248248

249-
// We'd want to able to remove HTTPRequestEncoder and HTTPResponseHandler by hand, following a successful upgrade to WebSocket
250-
extension HTTPRequestEncoder: RemovableChannelHandler { }
249+
// We'd want to able to remove HTTPResponseHandler by hand, following a successful upgrade to WebSocket
251250
extension HTTPResponseHandler: RemovableChannelHandler { }

0 commit comments

Comments
 (0)