Skip to content

Commit

Permalink
More comments in code about the staging of uploading data.
Browse files Browse the repository at this point in the history
  • Loading branch information
drewmccormack committed Dec 10, 2024
1 parent 80bee10 commit b19216b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sources/ForkedCloudKit/CloudKitExchange.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ public extension Logger {
}

extension Fork {
/// Represents the last known state of the resource on the cloud.
static let cloudKit: Self = .init(name: "cloudKit")

/// Used as temporary storage for uploading data. It's a staging area. We never merge it.
/// We have this, because we don't want to update .cloudKit before we know that the upload
/// definitely took place.
static let uploadingToCloudKit: Self = .init(name: "uploadingToCloudKit")
}

Expand Down

0 comments on commit b19216b

Please sign in to comment.