This commit is contained in:
Mike Renoir 2023-10-27 17:56:12 +04:00
parent c4618f19db
commit 9e02ec560a
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 })
}
guard let valueBox else {
guard let valueBox = valueBox else {
postboxLog("Giving up on opening value box at \(basePath + "/db")")
postboxLogSync()
preconditionFailure()

View File

@ -105,7 +105,7 @@ final class AccountManagerImpl<Types: AccountManagerTypes> {
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")")
postboxLogSync()
preconditionFailure()