File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ private let _isRunning = Atomic<Bool>(false)
29
29
public final class LambdaRuntime < Handler> : Sendable where Handler: StreamingLambdaHandler {
30
30
@usableFromInline
31
31
/// we protect the handler behind a Mutex to ensure that we only ever have one copy of it
32
- let handlerMutex : SendingStorage < Handler >
32
+ let handlerStorage : SendingStorage < Handler >
33
33
@usableFromInline
34
34
let logger : Logger
35
35
@usableFromInline
@@ -80,7 +80,7 @@ public final class LambdaRuntime<Handler>: Sendable where Handler: StreamingLamb
80
80
}
81
81
82
82
// The handler can be non-sendable, we want to ensure we only ever have one copy of it
83
- let handler = try ? self . handlerMutex . get ( )
83
+ let handler = try ? self . handlerStorage . get ( )
84
84
guard let handler else {
85
85
throw LambdaRuntimeError ( code: . runtimeCanOnlyBeStartedOnce)
86
86
}
You can’t perform that action at this time.
0 commit comments