@@ -38,9 +38,9 @@ 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 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
44
44
// for whatever reason and returns a future that originated from that foreign EventLoop.
45
45
. hop ( to: self . eventLoop)
46
46
. peekError { error in
@@ -64,9 +64,9 @@ 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 "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
70
70
// for whatever reason and returns a future that originated from that foreign EventLoop.
71
71
. hop ( to: self . eventLoop)
72
72
. mapResult { result in
0 commit comments