From b19216b789043ad66166133208574f701d0a6c6c Mon Sep 17 00:00:00 2001 From: Drew McCormack Date: Tue, 10 Dec 2024 11:57:59 +0100 Subject: [PATCH] More comments in code about the staging of uploading data. --- Sources/ForkedCloudKit/CloudKitExchange.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/ForkedCloudKit/CloudKitExchange.swift b/Sources/ForkedCloudKit/CloudKitExchange.swift index 1a1ce315..b07537f8 100644 --- a/Sources/ForkedCloudKit/CloudKitExchange.swift +++ b/Sources/ForkedCloudKit/CloudKitExchange.swift @@ -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") }