Skip to content

Commit 299b9bc

Browse files
committed
remove typed throw (workaround for swiftlang/swift#80020)
1 parent 46e76f3 commit 299b9bc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/AWSLambdaRuntime/LambdaRuntime.swift

+4-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ public final class LambdaRuntime<Handler>: @unchecked Sendable where Handler: St
4747
handler: sending Handler,
4848
eventLoop: EventLoop = Lambda.defaultEventLoop,
4949
logger: Logger = Logger(label: "LambdaRuntime")
50-
) throws(LambdaRuntimeError) {
50+
) throws {
51+
// technically, this initializer only throws LambdaRuntime Error but the below line crashes the compiler on Linux
52+
// https://github.com/swiftlang/swift/issues/80020
53+
// ) throws(LambdaRuntimeError) {
5154

5255
do {
5356
// try _singleton.withLock {

0 commit comments

Comments
 (0)