Skip to content

Commit 96799cb

Browse files
Pluralise "ObjectPool" thus fixing the typo
1 parent 9bd15c8 commit 96799cb

File tree

8 files changed

+56
-56
lines changed

8 files changed

+56
-56
lines changed

Sources/AblyLiveObjects/Internal/InternalDefaultLiveMap.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ internal import _AblyPluginSupportPrivate
22
import Ably
33

44
/// Protocol for accessing objects from the ObjectsPool. This is used by a LiveMap when it needs to return an object given an object ID.
5-
internal protocol LiveMapObjectPoolDelegate: AnyObject, Sendable {
5+
internal protocol LiveMapObjectsPoolDelegate: AnyObject, Sendable {
66
/// A snapshot of the objects pool.
77
var nosync_objectsPool: ObjectsPool { get }
88
}
@@ -121,7 +121,7 @@ internal final class InternalDefaultLiveMap: Sendable {
121121
// MARK: - Internal methods that back LiveMap conformance
122122

123123
/// Returns the value associated with a given key, following RTLM5d specification.
124-
internal func get(key: String, coreSDK: CoreSDK, delegate: LiveMapObjectPoolDelegate) throws(ARTErrorInfo) -> InternalLiveMapValue? {
124+
internal func get(key: String, coreSDK: CoreSDK, delegate: LiveMapObjectsPoolDelegate) throws(ARTErrorInfo) -> InternalLiveMapValue? {
125125
try mutableStateMutex.withSync { mutableState throws(ARTErrorInfo) in
126126
try mutableState.nosync_get(
127127
key: key,
@@ -131,7 +131,7 @@ internal final class InternalDefaultLiveMap: Sendable {
131131
}
132132
}
133133

134-
internal func size(coreSDK: CoreSDK, delegate: LiveMapObjectPoolDelegate) throws(ARTErrorInfo) -> Int {
134+
internal func size(coreSDK: CoreSDK, delegate: LiveMapObjectsPoolDelegate) throws(ARTErrorInfo) -> Int {
135135
try mutableStateMutex.withSync { mutableState throws(ARTErrorInfo) in
136136
try mutableState.nosync_size(
137137
coreSDK: coreSDK,
@@ -140,7 +140,7 @@ internal final class InternalDefaultLiveMap: Sendable {
140140
}
141141
}
142142

143-
internal func entries(coreSDK: CoreSDK, delegate: LiveMapObjectPoolDelegate) throws(ARTErrorInfo) -> [(key: String, value: InternalLiveMapValue)] {
143+
internal func entries(coreSDK: CoreSDK, delegate: LiveMapObjectsPoolDelegate) throws(ARTErrorInfo) -> [(key: String, value: InternalLiveMapValue)] {
144144
try mutableStateMutex.withSync { mutableState throws(ARTErrorInfo) in
145145
try mutableState.nosync_entries(
146146
coreSDK: coreSDK,
@@ -149,12 +149,12 @@ internal final class InternalDefaultLiveMap: Sendable {
149149
}
150150
}
151151

152-
internal func keys(coreSDK: CoreSDK, delegate: LiveMapObjectPoolDelegate) throws(ARTErrorInfo) -> [String] {
152+
internal func keys(coreSDK: CoreSDK, delegate: LiveMapObjectsPoolDelegate) throws(ARTErrorInfo) -> [String] {
153153
// RTLM12b: Identical to LiveMap#entries, except that it returns only the keys from the internal data map
154154
try entries(coreSDK: coreSDK, delegate: delegate).map(\.key)
155155
}
156156

157-
internal func values(coreSDK: CoreSDK, delegate: LiveMapObjectPoolDelegate) throws(ARTErrorInfo) -> [InternalLiveMapValue] {
157+
internal func values(coreSDK: CoreSDK, delegate: LiveMapObjectsPoolDelegate) throws(ARTErrorInfo) -> [InternalLiveMapValue] {
158158
// RTLM13b: Identical to LiveMap#entries, except that it returns only the values from the internal data map
159159
try entries(coreSDK: coreSDK, delegate: delegate).map(\.value)
160160
}

Sources/AblyLiveObjects/Internal/InternalDefaultRealtimeObjects.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ internal import _AblyPluginSupportPrivate
22
import Ably
33

44
/// This provides the implementation behind ``PublicDefaultRealtimeObjects``, via internal versions of the ``RealtimeObjects`` API.
5-
internal final class InternalDefaultRealtimeObjects: Sendable, LiveMapObjectPoolDelegate {
5+
internal final class InternalDefaultRealtimeObjects: Sendable, LiveMapObjectsPoolDelegate {
66
private let mutableStateMutex: DispatchQueueMutex<MutableState>
77

88
private let logger: Logger
@@ -139,7 +139,7 @@ internal final class InternalDefaultRealtimeObjects: Sendable, LiveMapObjectPool
139139
garbageCollectionTask.cancel()
140140
}
141141

142-
// MARK: - LiveMapObjectPoolDelegate
142+
// MARK: - LiveMapObjectsPoolDelegate
143143

144144
internal var nosync_objectsPool: ObjectsPool {
145145
mutableStateMutex.withoutSync { mutableState in

Sources/AblyLiveObjects/Public/Public Proxy Objects/InternalLiveMapValue+ToPublic.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ internal extension InternalLiveMapValue {
55

66
struct PublicValueCreationArgs {
77
internal var coreSDK: CoreSDK
8-
internal var mapDelegate: LiveMapObjectPoolDelegate
8+
internal var mapDelegate: LiveMapObjectsPoolDelegate
99
internal var logger: Logger
1010

1111
internal var toCounterCreationArgs: PublicObjectsStore.CounterCreationArgs {

Sources/AblyLiveObjects/Public/Public Proxy Objects/PublicDefaultLiveMap.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ internal final class PublicDefaultLiveMap: LiveMap {
1010
// MARK: - Dependencies that hold a strong reference to `proxied`
1111

1212
private let coreSDK: CoreSDK
13-
private let delegate: LiveMapObjectPoolDelegate
13+
private let delegate: LiveMapObjectsPoolDelegate
1414
private let logger: Logger
1515

16-
internal init(proxied: InternalDefaultLiveMap, coreSDK: CoreSDK, delegate: LiveMapObjectPoolDelegate, logger: Logger) {
16+
internal init(proxied: InternalDefaultLiveMap, coreSDK: CoreSDK, delegate: LiveMapObjectsPoolDelegate, logger: Logger) {
1717
self.proxied = proxied
1818
self.coreSDK = coreSDK
1919
self.delegate = delegate

Sources/AblyLiveObjects/Public/Public Proxy Objects/PublicObjectsStore.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ internal final class PublicObjectsStore: Sendable {
4545

4646
internal struct MapCreationArgs {
4747
internal var coreSDK: CoreSDK
48-
internal var delegate: LiveMapObjectPoolDelegate
48+
internal var delegate: LiveMapObjectsPoolDelegate
4949
internal var logger: Logger
5050
}
5151

0 commit comments

Comments
 (0)