File tree 2 files changed +3
-3
lines changed
Sources/AWSLambdaRuntimeCore
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ let package = Package(
15
15
. library( name: " AWSLambdaTesting " , targets: [ " AWSLambdaTesting " ] ) ,
16
16
] ,
17
17
dependencies: [
18
- . package ( url: " https://github.com/apple/swift-nio.git " , . upToNextMajor( from: " 2.30 .0 " ) ) ,
18
+ . package ( url: " https://github.com/apple/swift-nio.git " , . upToNextMajor( from: " 2.32 .0 " ) ) ,
19
19
. package ( url: " https://github.com/apple/swift-log.git " , . upToNextMajor( from: " 1.4.2 " ) ) ,
20
20
. package ( url: " https://github.com/swift-server/swift-backtrace.git " , . upToNextMajor( from: " 1.2.3 " ) ) ,
21
21
] ,
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ public protocol AsyncLambdaHandler: EventLoopLambdaHandler {
114
114
extension AsyncLambdaHandler {
115
115
public func handle( context: Lambda . Context , event: In ) -> EventLoopFuture < Out > {
116
116
let promise = context. eventLoop. makePromise ( of: Out . self)
117
- promise. completeWithAsync {
117
+ promise. completeWithTask {
118
118
try await self . handle ( event: event, context: context)
119
119
}
120
120
return promise. futureResult
@@ -126,7 +126,7 @@ extension AsyncLambdaHandler {
126
126
public static func main( ) {
127
127
Lambda . run { context -> EventLoopFuture < ByteBufferLambdaHandler > in
128
128
let promise = context. eventLoop. makePromise ( of: ByteBufferLambdaHandler . self)
129
- promise. completeWithAsync {
129
+ promise. completeWithTask {
130
130
try await Self ( context: context)
131
131
}
132
132
return promise. futureResult
You can’t perform that action at this time.
0 commit comments