Skip to content

Commit 2ba20f1

Browse files
committed
Timer interval 10s->30min
1 parent 15aad85 commit 2ba20f1

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

BrickHack-Mobile/Controllers/ScheduleTableViewController.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,8 @@ class ScheduleTableViewController: UITableViewController {
6363
tableView.separatorStyle = .none
6464

6565
// Set timer for timeline refresh function,
66-
// which runs each minute (while the screen is visible) and updates the timeline view if necessary.
67-
// @TODO: Change from 60s to change on every hour, effectively caching the result
68-
// (or maybe don't bother with cache and do it every time the view is loaded / minimal persistance)
69-
scheduleTimer = Timer.scheduledTimer(timeInterval: 10.0, target: self, selector: #selector(refreshTimeline), userInfo: nil, repeats: true)
66+
// which runs every 30 minutes (while the screen is visible) and updates the timeline view if necessary.
67+
scheduleTimer = Timer.scheduledTimer(timeInterval: (60.0 * 30), target: self, selector: #selector(refreshTimeline), userInfo: nil, repeats: true)
7068
scheduleTimer.fire()
7169
}
7270

0 commit comments

Comments
 (0)