Minor refactoring

This commit is contained in:
nielsandriesse 2020-06-12 09:26:57 +10:00
parent 8843e8c495
commit 1b61330669
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ final class IP2Country {
}
@objc func populateCacheIfNeededAsync() {
DispatchQueue.global(qos: .userInitiated).async {
DispatchQueue.global(qos: .utility).async {
let _ = self.populateCacheIfNeeded()
}
}

View File

@ -154,7 +154,7 @@ final class HomeVC : BaseVC, UITableViewDataSource, UITableViewDelegate, UIScrol
appDelegate.startRSSFeedPollersIfNeeded()
}
// Populate onion request path countries cache
DispatchQueue.global(qos: .default).async {
DispatchQueue.global(qos: .utility).async {
let _ = IP2Country.shared.populateCacheIfNeeded()
}
// Do initial update