mirror of
https://github.com/apple/swift-nio-extras.git
synced 2025-05-14 08:52:42 +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 {
|
||||
try self.unwindIfNeeded(&buffer) { buffer in
|
||||
try self.unwindIfNeeded(&buffer) { buffer -> Action in
|
||||
guard let selected = try buffer.readMethodSelection() else {
|
||||
return .waitForMoreData
|
||||
}
|
||||
@ -102,7 +102,7 @@ extension ClientStateMachine {
|
||||
}
|
||||
|
||||
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 {
|
||||
return .waitForMoreData
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user