1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-12 21:30:32 +05:30

increase retry delay to 1 second

Signed-off-by: Toni Förster <toni.foerster@gmail.com>
This commit is contained in:
Toni Förster 2024-08-30 23:14:41 +02:00
parent c9ce574c7a
commit 18ac577c7f
No known key found for this signature in database
GPG Key ID: 292F3E5086C83FC7

View File

@ -7,7 +7,7 @@ final class ThumbnailsModel: ObservableObject {
@Published var unloadable = Set<URL>()
private var retryCounts = [URL: Int]()
private let maxRetries = 3
private let retryDelay: TimeInterval = 0.25
private let retryDelay: TimeInterval = 1.0
func insertUnloadable(_ url: URL) {
let retries = (retryCounts[url] ?? 0) + 1