From 9f97b084754d05e934e0e7c2b76d94a245f7dada Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Wed, 1 May 2024 21:32:07 -0700 Subject: [PATCH] Fix concurrency warning for OSLog. --- Account/Sources/Account/AccountSyncError.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Account/Sources/Account/AccountSyncError.swift b/Account/Sources/Account/AccountSyncError.swift index 6b32b5f2d..6b3fa7682 100644 --- a/Account/Sources/Account/AccountSyncError.swift +++ b/Account/Sources/Account/AccountSyncError.swift @@ -15,7 +15,10 @@ public extension Notification.Name { public struct AccountSyncError { - private static let log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "Application") + // OSLog is supposedly Sendable and will be annotated that way in the future: + // https://forums.developer.apple.com/forums/thread/747816 + nonisolated(unsafe) private static let log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "Application") + public let account: Account public let error: Error