Increase the duration of TimelineViewController’s database fetch queue from 0.5 to 2.0. This will still allow updates to appear in a timely way, but will help prevent fetching too often during a refresh.

This commit is contained in:
Brent Simmons 2019-05-19 22:26:08 -07:00
parent 4d27e5a338
commit 74953601dd

View File

@ -96,7 +96,7 @@ final class TimelineViewController: NSViewController, UndoableCommandRunner {
}
private var didRegisterForNotifications = false
static let fetchAndMergeArticlesQueue = CoalescingQueue(name: "Fetch and Merge Articles", interval: 0.5)
static let fetchAndMergeArticlesQueue = CoalescingQueue(name: "Fetch and Merge Articles", interval: 2.0, maxInterval: 5.0)
private var sortDirection = AppDefaults.timelineSortDirection {
didSet {