mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Dont prefetch sync update pages
This commit is contained in:
parent
47c21fad37
commit
84c62eae54
1 changed files with 1 additions and 11 deletions
|
|
@ -4,7 +4,7 @@ import Services
|
|||
class LibrarySyncManager {
|
||||
var syncCursor: String?
|
||||
|
||||
func syncItems(dataService: DataService) async {
|
||||
func syncUpdates(dataService: DataService) async {
|
||||
let syncStart = Date.now
|
||||
let lastSyncDate = dataService.lastItemSyncTime
|
||||
|
||||
|
|
@ -26,15 +26,5 @@ class LibrarySyncManager {
|
|||
} else {
|
||||
dataService.lastItemSyncTime = syncStart
|
||||
}
|
||||
|
||||
// If possible start prefetching new pages in the background
|
||||
if
|
||||
let itemIDs = syncResult?.updatedItemIDs,
|
||||
!itemIDs.isEmpty
|
||||
{
|
||||
Task.detached(priority: .background) {
|
||||
await dataService.prefetchPages(itemIDs: itemIDs, username: "username")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue