mirror of
https://github.com/apple/swift-nio-extras.git
synced 2025-05-16 18:16:04 +08:00
Fix on Swift 5
This commit is contained in:
parent
393b6a4fb0
commit
bd618138f1
@ -89,7 +89,7 @@ extension ClientStateMachine {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mutating func handleSelectedAuthenticationMethod(_ buffer: inout ByteBuffer, greeting: ClientGreeting) throws -> Action {
|
mutating func handleSelectedAuthenticationMethod(_ buffer: inout ByteBuffer, greeting: ClientGreeting) throws -> Action {
|
||||||
try self.unwindIfNeeded(&buffer) { buffer in
|
try self.unwindIfNeeded(&buffer) { buffer -> Action in
|
||||||
guard let selected = try buffer.readMethodSelection() else {
|
guard let selected = try buffer.readMethodSelection() else {
|
||||||
return .waitForMoreData
|
return .waitForMoreData
|
||||||
}
|
}
|
||||||
@ -102,7 +102,7 @@ extension ClientStateMachine {
|
|||||||
}
|
}
|
||||||
|
|
||||||
mutating func handleServerResponse(_ buffer: inout ByteBuffer, request: ClientRequest) throws -> Action {
|
mutating func handleServerResponse(_ buffer: inout ByteBuffer, request: ClientRequest) throws -> Action {
|
||||||
try self.unwindIfNeeded(&buffer) { buffer in
|
try self.unwindIfNeeded(&buffer) { buffer -> Action in
|
||||||
guard let response = try buffer.readServerResponse() else {
|
guard let response = try buffer.readServerResponse() else {
|
||||||
return .waitForMoreData
|
return .waitForMoreData
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user