diff --git a/Articles/Sources/Articles/DatabaseID.swift b/Articles/Sources/Articles/DatabaseID.swift index 32918a7ee..1ad269cc3 100644 --- a/Articles/Sources/Articles/DatabaseID.swift +++ b/Articles/Sources/Articles/DatabaseID.swift @@ -16,9 +16,9 @@ import RSCore private var databaseIDCache = [String: String]() private var databaseIDCacheLock = NSLock() public func databaseIDWithString(_ s: String) -> String { - databaseIdCacheLock.lock() + databaseIDCacheLock.lock() defer { - databaseIdCacheLock.unlock() + databaseIDCacheLock.unlock() } if let identifier = databaseIDCache[s] {