Skip to content

Commit bb2c971

Browse files
committed
swift-format
1 parent 9c054fd commit bb2c971

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Sources/AWSLambdaRuntimeCore/LambdaRuntimeClient.swift

+4-3
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ final actor LambdaRuntimeClient: LambdaRuntimeClientProtocol {
4949
}
5050
}
5151

52+
private typealias ConnectionContinuation = CheckedContinuation<NIOLoopBound<LambdaChannelHandler<LambdaRuntimeClient>>, any Error>
53+
5254
private enum ConnectionState {
5355
case disconnected
54-
case connecting([CheckedContinuation<NIOLoopBound<LambdaChannelHandler<LambdaRuntimeClient>>, any Error>])
56+
case connecting([ConnectionContinuation])
5557
case connected(Channel, LambdaChannelHandler<LambdaRuntimeClient>)
5658
}
5759

@@ -283,8 +285,7 @@ final actor LambdaRuntimeClient: LambdaRuntimeClientProtocol {
283285
case .connecting(var array):
284286
// Since we do get sequential invocations this case normally should never be hit.
285287
// We'll support it anyway.
286-
let loopBound = try await withCheckedThrowingContinuation {
287-
(continuation: CheckedContinuation<NIOLoopBound<LambdaChannelHandler<LambdaRuntimeClient>>, any Error>) in
288+
let loopBound = try await withCheckedThrowingContinuation { (continuation: ConnectionContinuation) in
288289
array.append(continuation)
289290
self.connectionState = .connecting(array)
290291
}

0 commit comments

Comments
 (0)