Skip to content

Commit 0509eaa

Browse files
committed
revert try on runtime.init() in doc
1 parent e445f90 commit 0509eaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ struct SendNumbersWithPause: StreamingLambdaHandler {
248248
}
249249
}
250250

251-
let runtime = try LambdaRuntime.init(handler: SendNumbersWithPause())
251+
let runtime = LambdaRuntime.init(handler: SendNumbersWithPause())
252252
try await runtime.run()
253253
```
254254

@@ -328,7 +328,7 @@ struct BackgroundProcessingHandler: LambdaWithBackgroundProcessingHandler {
328328
}
329329

330330
let adapter = LambdaCodableAdapter(handler: BackgroundProcessingHandler())
331-
let runtime = try LambdaRuntime.init(handler: adapter)
331+
let runtime = LambdaRuntime.init(handler: adapter)
332332
try await runtime.run()
333333
```
334334

0 commit comments

Comments
 (0)