Skip to content

Commit 93bc100

Browse files
committed
comments
1 parent 39f2241 commit 93bc100

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/AWSLambdaRuntimeCore/LambdaRunner.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ 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
42-
// a future that originiated from a different EventLoop
41+
// hopping back to "our" EventLoop is importnant in case the factory returns a future
42+
// that originiated from a different EventLoop/EventLoopGroup
4343
// this can happen if the factory uses a library (lets say a DB client) that manages it's own EventLoops
4444
// for whatever reason and returns a future that originated from that foreign EventLoop.
4545
.hop(to: self.eventLoop)
@@ -64,8 +64,8 @@ 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 the "our" EventLoop is importnant in case the handler returns
68-
// a future that originiated from a different EventLoop
67+
// hopping back to "our" EventLoop is importnant in case the handler returns a future that
68+
// originiated from a different EventLoop/EventLoopGroup
6969
// this can happen if the handler uses a library (lets say a DB client) that manages it's own EventLoops
7070
// for whatever reason and returns a future that originated from that foreign EventLoop.
7171
.hop(to: self.eventLoop)

0 commit comments

Comments
 (0)