From 4365ee731ead4e7a4899e6a2769398fc5e3865fe Mon Sep 17 00:00:00 2001 From: Arco Date: Sat, 14 Oct 2017 22:45:00 +0800 Subject: [PATCH] Fix `cacheScheduler` spelling error --- Network/Cache/Cache.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Network/Cache/Cache.swift b/Network/Cache/Cache.swift index 20a4bccd..5c4f49ec 100644 --- a/Network/Cache/Cache.swift +++ b/Network/Cache/Cache.swift @@ -39,7 +39,7 @@ final class Cache: AbstractCache where T == T.Encoder.DomainTyp } private let path: String - private let chacheScheduler = SerialDispatchQueueScheduler(internalSerialQueueName: "com.CleanAchitecture.Network.Cache.queue") + private let cacheScheduler = SerialDispatchQueueScheduler(internalSerialQueueName: "com.CleanAchitecture.Network.Cache.queue") init(path: String) { self.path = path @@ -64,7 +64,7 @@ final class Cache: AbstractCache where T == T.Encoder.DomainTyp } return Disposables.create() - }.subscribeOn(chacheScheduler) + }.subscribeOn(cacheScheduler) } override func save(objects: [T]) -> Completable { @@ -85,7 +85,7 @@ final class Cache: AbstractCache where T == T.Encoder.DomainTyp } return Disposables.create() - }.subscribeOn(chacheScheduler) + }.subscribeOn(cacheScheduler) } override func fetch(withID id: String) -> Maybe { @@ -106,7 +106,7 @@ final class Cache: AbstractCache where T == T.Encoder.DomainTyp } observer(MaybeEvent.success(object.asDomain())) return Disposables.create() - }.subscribeOn(chacheScheduler) + }.subscribeOn(cacheScheduler) } override func fetchObjects() -> Maybe<[T]> { @@ -123,7 +123,7 @@ final class Cache: AbstractCache where T == T.Encoder.DomainTyp } observer(MaybeEvent.success(objects.map { $0.asDomain() })) return Disposables.create() - }.subscribeOn(chacheScheduler) + }.subscribeOn(cacheScheduler) } private func directoryURL() -> URL? {