Remove old sleeps
This commit is contained in:
parent
455273f322
commit
9d7c876e3c
|
@ -209,7 +209,6 @@ class StatusActionAccountListCollectionViewController: UIViewController, Collect
|
||||||
await apply(snapshot: snapshot)
|
await apply(snapshot: snapshot)
|
||||||
|
|
||||||
do {
|
do {
|
||||||
try! await Task.sleep(nanoseconds: 2 * NSEC_PER_SEC)
|
|
||||||
let (accounts, pagination) = try await mastodonController.run(request(for: older))
|
let (accounts, pagination) = try await mastodonController.run(request(for: older))
|
||||||
await mastodonController.persistentContainer.addAll(accounts: accounts)
|
await mastodonController.persistentContainer.addAll(accounts: accounts)
|
||||||
|
|
||||||
|
|
|
@ -948,8 +948,6 @@ extension TimelineViewController {
|
||||||
typealias TimelineItem = String // status ID
|
typealias TimelineItem = String // status ID
|
||||||
|
|
||||||
func loadInitial() async throws -> [TimelineItem] {
|
func loadInitial() async throws -> [TimelineItem] {
|
||||||
try await Task.sleep(nanoseconds: 1 * NSEC_PER_SEC)
|
|
||||||
|
|
||||||
let request = Client.getStatuses(timeline: timeline)
|
let request = Client.getStatuses(timeline: timeline)
|
||||||
let (statuses, _) = try await mastodonController.run(request)
|
let (statuses, _) = try await mastodonController.run(request)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue