Skip to content

Commit

Permalink
Fix cacheScheduler spelling error
Browse files Browse the repository at this point in the history
  • Loading branch information
Arcovv committed Oct 14, 2017
1 parent f26edbd commit 4365ee7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Network/Cache/Cache.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ final class Cache<T: Encodable>: AbstractCache<T> 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
Expand All @@ -64,7 +64,7 @@ final class Cache<T: Encodable>: AbstractCache<T> where T == T.Encoder.DomainTyp
}

return Disposables.create()
}.subscribeOn(chacheScheduler)
}.subscribeOn(cacheScheduler)
}

override func save(objects: [T]) -> Completable {
Expand All @@ -85,7 +85,7 @@ final class Cache<T: Encodable>: AbstractCache<T> where T == T.Encoder.DomainTyp
}

return Disposables.create()
}.subscribeOn(chacheScheduler)
}.subscribeOn(cacheScheduler)
}

override func fetch(withID id: String) -> Maybe<T> {
Expand All @@ -106,7 +106,7 @@ final class Cache<T: Encodable>: AbstractCache<T> where T == T.Encoder.DomainTyp
}
observer(MaybeEvent<T>.success(object.asDomain()))
return Disposables.create()
}.subscribeOn(chacheScheduler)
}.subscribeOn(cacheScheduler)
}

override func fetchObjects() -> Maybe<[T]> {
Expand All @@ -123,7 +123,7 @@ final class Cache<T: Encodable>: AbstractCache<T> where T == T.Encoder.DomainTyp
}
observer(MaybeEvent.success(objects.map { $0.asDomain() }))
return Disposables.create()
}.subscribeOn(chacheScheduler)
}.subscribeOn(cacheScheduler)
}

private func directoryURL() -> URL? {
Expand Down

0 comments on commit 4365ee7

Please sign in to comment.