@@ -72,7 +72,7 @@ final actor LambdaRuntimeClient: LambdaRuntimeClientProtocol {
7272 case lostConnection
7373 case connecting( [ ConnectionContinuation ] )
7474 case connected( Channel , LambdaChannelHandler < LambdaRuntimeClient > )
75-
75+
7676 static func == ( lhs: ConnectionState , rhs: ConnectionState ) -> Bool {
7777 switch ( lhs, rhs) {
7878 case ( . disconnected, . disconnected) :
@@ -171,7 +171,7 @@ final actor LambdaRuntimeClient: LambdaRuntimeClientProtocol {
171171
172172 case . connected( let channel, _) :
173173 channel. close ( mode: . all, promise: nil )
174-
174+
175175 case . lostConnection:
176176 continuation. resume ( )
177177 }
@@ -191,7 +191,7 @@ final actor LambdaRuntimeClient: LambdaRuntimeClientProtocol {
191191 self . lambdaState = . waitingForNextInvocation
192192 let handler = try await self . makeOrGetConnection ( )
193193 let invocation = try await handler. nextInvocation ( )
194-
194+
195195 guard case . waitingForNextInvocation = self . lambdaState else {
196196 fatalError ( " Invalid state: \( self . lambdaState) " )
197197 }
@@ -320,7 +320,6 @@ final actor LambdaRuntimeClient: LambdaRuntimeClientProtocol {
320320 case ( . connected, . notClosing) :
321321 self . connectionState = . disconnected
322322
323-
324323 case ( . connected, . closing( let continuation) ) :
325324 self . connectionState = . disconnected
326325
@@ -394,8 +393,8 @@ final actor LambdaRuntimeClient: LambdaRuntimeClientProtocol {
394393 self . assumeIsolated { runtimeClient in
395394
396395 // resume any pending continuation on the handler
397- if case . connected( _ , let handler) = runtimeClient. connectionState {
398- if case . connected( _ , let lambdaState) = handler. state {
396+ if case . connected( _, let handler) = runtimeClient. connectionState {
397+ if case . connected( _, let lambdaState) = handler. state {
399398 if case . waitingForNextInvocation( let continuation) = lambdaState {
400399 continuation. resume ( throwing: LambdaRuntimeError ( code: . connectionToControlPlaneLost) )
401400 }
0 commit comments