Skip to content

Commit c224834

Browse files
Fix sendable issues with global locked value boxes
1 parent 9a8ae28 commit c224834

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/OpenAPIURLSession/URLSessionTransport.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,12 +291,12 @@ extension URLSessionTransportError: CustomStringConvertible {
291291
}
292292
}
293293

294-
private let _debugLoggingEnabled = LockStorage.create(value: false)
294+
private let _debugLoggingEnabled = LockedValueBox(false)
295295
var debugLoggingEnabled: Bool {
296296
get { _debugLoggingEnabled.withLockedValue { $0 } }
297297
set { _debugLoggingEnabled.withLockedValue { $0 = newValue } }
298298
}
299-
private let _standardErrorLock = LockStorage.create(value: FileHandle.standardError)
299+
private let _standardErrorLock = LockedValueBox(FileHandle.standardError)
300300
func debug(_ message: @autoclosure () -> String, function: String = #function, file: String = #file, line: UInt = #line)
301301
{
302302
assert(

0 commit comments

Comments
 (0)