File tree 1 file changed +4
-4
lines changed
Sources/AWSLambdaRuntimeCore 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ extension Lambda {
38
38
// 2. report initialization error if one occured
39
39
let context = InitializationContext ( logger: logger, eventLoop: self . eventLoop)
40
40
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
43
43
// this can happen if the factory uses a library (lets say a DB client) that manages it's own EventLoops
44
44
// for whatever reason and returns a future that originated from that foreign EventLoop.
45
45
. hop ( to: self . eventLoop)
@@ -64,8 +64,8 @@ extension Lambda {
64
64
let context = Context ( logger: logger, eventLoop: self . eventLoop, invocation: invocation)
65
65
logger. debug ( " sending invocation to lambda handler \( handler) " )
66
66
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
69
69
// this can happen if the handler uses a library (lets say a DB client) that manages it's own EventLoops
70
70
// for whatever reason and returns a future that originated from that foreign EventLoop.
71
71
. hop ( to: self . eventLoop)
You can’t perform that action at this time.
0 commit comments