Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios

This commit is contained in:
Ilya Laktyushin 2023-10-29 17:52:53 +04:00
commit 138bc7d0ed
2 changed files with 2 additions and 2 deletions

View File

@ -190,7 +190,7 @@ public final class StorageBox {
valueBox = SqliteValueBox(basePath: databasePath, queue: queue, isTemporary: false, isReadOnly: false, useCaches: isMainProcess, removeDatabaseOnError: isMainProcess, encryptionParameters: nil, upgradeProgress: { _ in }) valueBox = SqliteValueBox(basePath: databasePath, queue: queue, isTemporary: false, isReadOnly: false, useCaches: isMainProcess, removeDatabaseOnError: isMainProcess, encryptionParameters: nil, upgradeProgress: { _ in })
} }
guard let valueBox else { guard let valueBox = valueBox else {
postboxLog("Giving up on opening value box at \(basePath + "/db")") postboxLog("Giving up on opening value box at \(basePath + "/db")")
postboxLogSync() postboxLogSync()
preconditionFailure() preconditionFailure()

View File

@ -105,7 +105,7 @@ final class AccountManagerImpl<Types: AccountManagerTypes> {
Thread.sleep(forTimeInterval: 0.1 + 0.5 * Double(i)) Thread.sleep(forTimeInterval: 0.1 + 0.5 * Double(i))
} }
} }
guard let valueBox else { guard let valueBox = valueBox else {
postboxLog("Giving up on opening value box at \(basePath + "/db")") postboxLog("Giving up on opening value box at \(basePath + "/db")")
postboxLogSync() postboxLogSync()
preconditionFailure() preconditionFailure()