Skip to content

Commit 94d7a22

Browse files
committed
Make LogHandlerActor.shared a let
To fix a concurrency error that was surfaced by swiftlang/swift#78652.
1 parent 03da7e9 commit 94d7a22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SKLogging/NonDarwinLogging.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ private let dateFormatter = {
287287
/// Actor that protects `logHandler`
288288
@globalActor
289289
actor LogHandlerActor {
290-
static var shared: LogHandlerActor = LogHandlerActor()
290+
static let shared: LogHandlerActor = LogHandlerActor()
291291
}
292292

293293
/// The handler that is called to log a message from `NonDarwinLogger` unless `overrideLogHandler` is set on the logger.

0 commit comments

Comments
 (0)