mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 13:33:42 +00:00
increase retry delay to 1 second
Signed-off-by: Toni Förster <toni.foerster@gmail.com>
This commit is contained in:
parent
c9ce574c7a
commit
18ac577c7f
@ -7,7 +7,7 @@ final class ThumbnailsModel: ObservableObject {
|
|||||||
@Published var unloadable = Set<URL>()
|
@Published var unloadable = Set<URL>()
|
||||||
private var retryCounts = [URL: Int]()
|
private var retryCounts = [URL: Int]()
|
||||||
private let maxRetries = 3
|
private let maxRetries = 3
|
||||||
private let retryDelay: TimeInterval = 0.25
|
private let retryDelay: TimeInterval = 1.0
|
||||||
|
|
||||||
func insertUnloadable(_ url: URL) {
|
func insertUnloadable(_ url: URL) {
|
||||||
let retries = (retryCounts[url] ?? 0) + 1
|
let retries = (retryCounts[url] ?? 0) + 1
|
||||||
|
Loading…
Reference in New Issue
Block a user