We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58ac3c1 commit 25595b4Copy full SHA for 25595b4
Sources/Redis/RedisConnection.swift
@@ -12,16 +12,15 @@ public final class RedisConnection {
12
13
public func get(
14
_ key: String,
15
- queue: DispatchQueue = .main,
16
_ callback: @escaping (Result<String?, Error>
17
) -> Void) {
18
// TODO: Make this a generic method to avoid copy/paste
19
driverConnection.get(key)
20
.map { result in
21
- queue.async { callback(.success(result)) }
+ self.queue.async { callback(.success(result)) }
22
}
23
.whenFailure { error in
24
- queue.async { callback(.failure(error)) }
+ self.queue.async { callback(.failure(error)) }
25
26
27
0 commit comments