Skip to content

Commit d330b02

Browse files
author
Sebastien Stormacq
committed
swift-format
1 parent f611f1a commit d330b02

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Sources/AWSLambdaRuntime/Lambda+LocalServer.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ internal struct LambdaHTTPServer {
560560
typealias Element = T
561561

562562
struct State: ~Copyable {
563-
var actions : Deque<T>
563+
var actions: Deque<T>
564564
var continuationQueue: Deque<CheckedContinuation<T, any Error>>
565565
}
566566
private let lock = Mutex<State>(State(actions: [], continuationQueue: []))
@@ -589,7 +589,8 @@ internal struct LambdaHTTPServer {
589589

590590
return try await withTaskCancellationHandler {
591591
try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<T, any Error>) in
592-
let (nextAction, nextContinuation) = self.lock.withLock { state -> (T?, CheckedContinuation<T, any Error>) in
592+
let (nextAction, nextContinuation) = self.lock.withLock {
593+
state -> (T?, CheckedContinuation<T, any Error>) in
593594
if let nextContinuation = state.continuationQueue.popFirst() {
594595
if let nextAction = state.actions.popFirst() {
595596
return (nextAction, nextContinuation)

0 commit comments

Comments
 (0)