From a2f5b451bd32780d60be69c6412cb351a54b765b Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Tue, 28 May 2024 17:21:30 +0200 Subject: initial implementation of sync-collection --- aero-collections/src/davdag.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'aero-collections/src') 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))); } } -- cgit v1.2.3