diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-05-28 17:21:30 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-05-28 17:21:30 +0200 |
commit | a2f5b451bd32780d60be69c6412cb351a54b765b (patch) | |
tree | dc8dc26889d9f447dffd1b2f0968c348386cfcd7 /aero-collections/src | |
parent | 18f2154151b2cf81e03bdda28fa2ea5d685e33d1 (diff) | |
download | aerogramme-a2f5b451bd32780d60be69c6412cb351a54b765b.tar.gz aerogramme-a2f5b451bd32780d60be69c6412cb351a54b765b.zip |
initial implementation of sync-collectioncaldav
Diffstat (limited to 'aero-collections/src')
-rw-r--r-- | aero-collections/src/davdag.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/aero-collections/src/davdag.rs b/aero-collections/src/davdag.rs index 36a9016..74e745f 100644 --- a/aero-collections/src/davdag.rs +++ b/aero-collections/src/davdag.rs @@ -42,7 +42,7 @@ pub struct DavDag { #[derive(Clone, Debug)] pub enum SyncChange { - Ok(FileName), + Ok((FileName, BlobId)), NotFound(FileName), } @@ -150,7 +150,8 @@ impl DavDag { // Record the change in the ephemeral synchronization map if let Some(sync_token) = sync_token { - self.change.insert(sync_token, SyncChange::Ok(filename)); + self.change + .insert(sync_token, SyncChange::Ok((filename, blob_id))); } } |