File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -53,5 +53,5 @@ struct BackgroundProcessingHandler: LambdaWithBackgroundProcessingHandler {
5353}
5454
5555let adapter = LambdaCodableAdapter ( handler: BackgroundProcessingHandler ( ) )
56- let runtime = LambdaRuntime . init ( handler: adapter)
56+ let runtime = try LambdaRuntime . init ( handler: adapter)
5757try await runtime. run ( )
Original file line number Diff line number Diff line change @@ -32,5 +32,5 @@ struct SendNumbersWithPause: StreamingLambdaHandler {
3232 }
3333}
3434
35- let runtime = LambdaRuntime . init ( handler: SendNumbersWithPause ( ) )
35+ let runtime = try LambdaRuntime . init ( handler: SendNumbersWithPause ( ) )
3636try await runtime. run ( )
Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ struct SendNumbersWithPause: StreamingLambdaHandler {
248248 }
249249}
250250
251- let runtime = LambdaRuntime.init (handler : SendNumbersWithPause ())
251+ let runtime = try LambdaRuntime.init (handler : SendNumbersWithPause ())
252252try await runtime.run ()
253253```
254254
@@ -328,7 +328,7 @@ struct BackgroundProcessingHandler: LambdaWithBackgroundProcessingHandler {
328328}
329329
330330let adapter = LambdaCodableAdapter (handler : BackgroundProcessingHandler ())
331- let runtime = LambdaRuntime.init (handler : adapter)
331+ let runtime = try LambdaRuntime.init (handler : adapter)
332332try await runtime.run ()
333333```
334334
You can’t perform that action at this time.
0 commit comments