diff --git a/Sources/PostgREST/PostgrestClient.swift b/Sources/PostgREST/PostgrestClient.swift index 4172c7fa..a2b52677 100644 --- a/Sources/PostgREST/PostgrestClient.swift +++ b/Sources/PostgREST/PostgrestClient.swift @@ -53,7 +53,7 @@ public final class PostgrestClient: Sendable { } } - let _configuration: LockIsolated + private let _configuration: LockIsolated public var configuration: Configuration { _configuration.value } /// Creates a PostgREST client with the specified configuration. diff --git a/Sources/Realtime/V2/CallbackManager.swift b/Sources/Realtime/V2/CallbackManager.swift index 33d5537a..557ba6b3 100644 --- a/Sources/Realtime/V2/CallbackManager.swift +++ b/Sources/Realtime/V2/CallbackManager.swift @@ -16,7 +16,7 @@ final class CallbackManager: @unchecked Sendable { var callbacks: [RealtimeCallback] = [] } - let mutableState = LockIsolated(MutableState()) + private let mutableState = LockIsolated(MutableState()) @discardableResult func addBroadcastCallback( diff --git a/Sources/Realtime/V2/WebSocketClient.swift b/Sources/Realtime/V2/WebSocketClient.swift index 435a35a6..331ef710 100644 --- a/Sources/Realtime/V2/WebSocketClient.swift +++ b/Sources/Realtime/V2/WebSocketClient.swift @@ -42,7 +42,7 @@ final class WebSocket: NSObject, URLSessionWebSocketDelegate, WebSocketClient, @ var stream: SocketStream? } - let mutableState = LockIsolated(MutableState()) + private let mutableState = LockIsolated(MutableState()) init(config: RealtimeClientV2.Configuration) { realtimeURL = config.realtimeWebSocketURL diff --git a/Sources/_Helpers/EventEmitter.swift b/Sources/_Helpers/EventEmitter.swift index c58dac1e..3e24c12b 100644 --- a/Sources/_Helpers/EventEmitter.swift +++ b/Sources/_Helpers/EventEmitter.swift @@ -30,7 +30,7 @@ public final class ObservationToken: Sendable { package final class EventEmitter: Sendable { public typealias Listener = @Sendable (Event) -> Void - let listeners = LockIsolated<[ObjectIdentifier: Listener]>([:]) + private let listeners = LockIsolated<[ObjectIdentifier: Listener]>([:]) public let lastEvent: LockIsolated let emitsLastEventWhenAttaching: Bool