Skip to content

Commit 1ae1dee

Browse files
DRY up usage of PluginAPI.sharedInstance()
Should have done this in b69a40d.
1 parent 714988d commit 1ae1dee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/AblyLiveObjects/Internal/ARTClientOptions+Objects.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ internal extension ARTClientOptions {
1414
/// Can be overriden for testing purposes.
1515
var garbageCollectionOptions: InternalDefaultRealtimeObjects.GarbageCollectionOptions? {
1616
get {
17-
let optionsValue = PluginAPI.sharedInstance().pluginOptionsValue(
17+
let optionsValue = Plugin.defaultPluginAPI.pluginOptionsValue(
1818
forKey: Self.garbageCollectionOptionsKey,
1919
clientOptions: self,
2020
)
@@ -35,7 +35,7 @@ internal extension ARTClientOptions {
3535
preconditionFailure("Not implemented the ability to un-set GC options")
3636
}
3737

38-
PluginAPI.sharedInstance().setPluginOptionsValue(
38+
Plugin.defaultPluginAPI.setPluginOptionsValue(
3939
Box<InternalDefaultRealtimeObjects.GarbageCollectionOptions>(boxed: newValue),
4040
forKey: Self.garbageCollectionOptionsKey,
4141
clientOptions: self,

0 commit comments

Comments
 (0)