Skip to content

Commit 7ac5292

Browse files
committed
further rename handlerMutex
1 parent f209493 commit 7ac5292

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/AWSLambdaRuntime/LambdaRuntime.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ private let _isRunning = Atomic<Bool>(false)
2929
public final class LambdaRuntime<Handler>: Sendable where Handler: StreamingLambdaHandler {
3030
@usableFromInline
3131
/// 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>
3333
@usableFromInline
3434
let logger: Logger
3535
@usableFromInline
@@ -80,7 +80,7 @@ public final class LambdaRuntime<Handler>: Sendable where Handler: StreamingLamb
8080
}
8181

8282
// 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()
8484
guard let handler else {
8585
throw LambdaRuntimeError(code: .runtimeCanOnlyBeStartedOnce)
8686
}

0 commit comments

Comments
 (0)