From 9d7c876e3c7400fe47d88ceb8f61db98e8865159 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Fri, 27 Jan 2023 21:48:47 -0500 Subject: [PATCH] Remove old sleeps --- .../StatusActionAccountListCollectionViewController.swift | 1 - Tusker/Screens/Timeline/TimelineViewController.swift | 2 -- 2 files changed, 3 deletions(-) diff --git a/Tusker/Screens/Status Action Account List/StatusActionAccountListCollectionViewController.swift b/Tusker/Screens/Status Action Account List/StatusActionAccountListCollectionViewController.swift index 8c11bc65..baf23bca 100644 --- a/Tusker/Screens/Status Action Account List/StatusActionAccountListCollectionViewController.swift +++ b/Tusker/Screens/Status Action Account List/StatusActionAccountListCollectionViewController.swift @@ -209,7 +209,6 @@ class StatusActionAccountListCollectionViewController: UIViewController, Collect await apply(snapshot: snapshot) do { - try! await Task.sleep(nanoseconds: 2 * NSEC_PER_SEC) let (accounts, pagination) = try await mastodonController.run(request(for: older)) await mastodonController.persistentContainer.addAll(accounts: accounts) diff --git a/Tusker/Screens/Timeline/TimelineViewController.swift b/Tusker/Screens/Timeline/TimelineViewController.swift index 99da074b..e36142dc 100644 --- a/Tusker/Screens/Timeline/TimelineViewController.swift +++ b/Tusker/Screens/Timeline/TimelineViewController.swift @@ -948,8 +948,6 @@ extension TimelineViewController { typealias TimelineItem = String // status ID func loadInitial() async throws -> [TimelineItem] { - try await Task.sleep(nanoseconds: 1 * NSEC_PER_SEC) - let request = Client.getStatuses(timeline: timeline) let (statuses, _) = try await mastodonController.run(request)