File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public enum Lambda {
4848 // Wait for the futureConnectionClosed to complete,
4949 // which will happen when the Lambda HTTP Server (or MockServer) closes the connection
5050 // This allows us to exit the run loop gracefully.
51- // The futureConnectionClosed is always an error, let it throw to finish the run loop.
51+ // The futureConnectionClosed is always an error, let it throw to terminate the Lambda run loop.
5252 let _ = try await futureConnectionClosed. get ( )
5353 }
5454
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ extension LambdaRuntime: Service {
2121 do {
2222 try await self . _run ( )
2323 } catch {
24- // catch top level error that have not been handled before
24+ // catch top level errors that have not been handled until now
2525 // this avoids the runtime to crash and generate a backtrace
2626 self . logger. error ( " LambdaRuntime.run() failed with error " , metadata: [ " error " : " \( error) " ] )
2727 }
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public final class LambdaRuntime<Handler>: Sendable where Handler: StreamingLamb
6262 do {
6363 try await _run ( )
6464 } catch {
65- // catch top level error that have not been handled before
65+ // catch top level errors that have not been handled until now
6666 // this avoids the runtime to crash and generate a backtrace
6767 self . logger. error ( " LambdaRuntime.run() failed with error " , metadata: [ " error " : " \( error) " ] )
6868 }
You can’t perform that action at this time.
0 commit comments