Skip to content

Commit 28be2ee

Browse files
committed
comments
1 parent 93bc100 commit 28be2ee

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Sources/AWSLambdaRuntimeCore/LambdaRunner.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ extension Lambda {
3838
// 2. report initialization error if one occured
3939
let context = InitializationContext(logger: logger, eventLoop: self.eventLoop)
4040
return factory(context)
41-
// hopping back to "our" EventLoop is importnant in case the factory returns a future
42-
// that originiated from a different EventLoop/EventLoopGroup
43-
// this can happen if the factory uses a library (lets say a DB client) that manages it's own EventLoops
41+
// Hopping back to "our" EventLoop is importnant in case the factory returns a future
42+
// that originiated from a foreign EventLoop/EventLoopGroup.
43+
// This can happen if the factory uses a library (lets say a DB client) that manages its own threads/loops
4444
// for whatever reason and returns a future that originated from that foreign EventLoop.
4545
.hop(to: self.eventLoop)
4646
.peekError { error in
@@ -64,9 +64,9 @@ extension Lambda {
6464
let context = Context(logger: logger, eventLoop: self.eventLoop, invocation: invocation)
6565
logger.debug("sending invocation to lambda handler \(handler)")
6666
return handler.handle(context: context, event: event)
67-
// hopping back to "our" EventLoop is importnant in case the handler returns a future that
68-
// originiated from a different EventLoop/EventLoopGroup
69-
// this can happen if the handler uses a library (lets say a DB client) that manages it's own EventLoops
67+
// Hopping back to "our" EventLoop is importnant in case the handler returns a future that
68+
// originiated from a foreign EventLoop/EventLoopGroup.
69+
// This can happen if the handler uses a library (lets say a DB client) that manages its own threads/loops
7070
// for whatever reason and returns a future that originated from that foreign EventLoop.
7171
.hop(to: self.eventLoop)
7272
.mapResult { result in

0 commit comments

Comments
 (0)