Skip to content

Commit

Permalink
improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
felixakiragreen committed Oct 2, 2022
1 parent be83365 commit 31425a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Binary file not shown.
8 changes: 4 additions & 4 deletions VisaViz/VisaViz/Model/TweetArchiveStore.swift
Expand Up @@ -106,7 +106,7 @@ class TweetArchiveStore: ObservableObject {
}

//
// Tweets (data/tweet.js)
// Tweets (data/tweet.js, data/tweet-part1.js, +)
//

func loadAllTweets() async throws {
Expand All @@ -116,13 +116,13 @@ class TweetArchiveStore: ObservableObject {

let url = try tweetURL(path: archivePath)

print("url", url)
// print("url", url)

try await loadTweets(url: url)

var i = 1
while let partUrl = tweetPartitionedURL(path: archivePath, part: i), i < 20 {
print("partUrl", partUrl)
// print("partUrl", partUrl)
do {
try await loadTweets(url: partUrl)
i += 1
Expand All @@ -136,7 +136,7 @@ class TweetArchiveStore: ObservableObject {
}

func loadTweets(url: URL) async throws {
print("loadTweets:", url)
// print("loadTweets:", url)

let (data, _) = try await URLSession.shared.data(from: url)
let decodedData = try await decodeTweetData(data: data)
Expand Down

0 comments on commit 31425a8

Please sign in to comment.