Skip to content

Commit a69ed54

Browse files
committed
fix typos
1 parent 166cd46 commit a69ed54

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Sources/AWSLambdaRuntime/Lambda.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

Sources/AWSLambdaRuntime/LambdaRuntime+ServiceLifecycle.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

Sources/AWSLambdaRuntime/LambdaRuntime.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)