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 {
48
48
// Wait for the futureConnectionClosed to complete,
49
49
// which will happen when the Lambda HTTP Server (or MockServer) closes the connection
50
50
// 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.
52
52
let _ = try await futureConnectionClosed. get ( )
53
53
}
54
54
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ extension LambdaRuntime: Service {
21
21
do {
22
22
try await self . _run ( )
23
23
} catch {
24
- // catch top level error that have not been handled before
24
+ // catch top level errors that have not been handled until now
25
25
// this avoids the runtime to crash and generate a backtrace
26
26
self . logger. error ( " LambdaRuntime.run() failed with error " , metadata: [ " error " : " \( error) " ] )
27
27
}
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public final class LambdaRuntime<Handler>: Sendable where Handler: StreamingLamb
62
62
do {
63
63
try await _run ( )
64
64
} catch {
65
- // catch top level error that have not been handled before
65
+ // catch top level errors that have not been handled until now
66
66
// this avoids the runtime to crash and generate a backtrace
67
67
self . logger. error ( " LambdaRuntime.run() failed with error " , metadata: [ " error " : " \( error) " ] )
68
68
}
You can’t perform that action at this time.
0 commit comments