diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-04-04 15:40:26 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2024-04-04 15:40:26 +0200 |
commit | 054bd52279faefd327be092ea7ec13f75f0a6163 (patch) | |
tree | e359da40785cae037204709e2d6dc09b9c9b8f14 /aero-collections/src/davdag.rs | |
parent | 272b93f04a0640e056fe994f48cb2837eacdad46 (diff) | |
download | aerogramme-054bd52279faefd327be092ea7ec13f75f0a6163.tar.gz aerogramme-054bd52279faefd327be092ea7ec13f75f0a6163.zip |
Implement diff
Diffstat (limited to 'aero-collections/src/davdag.rs')
-rw-r--r-- | aero-collections/src/davdag.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/aero-collections/src/davdag.rs b/aero-collections/src/davdag.rs index f668831..3aaebb8 100644 --- a/aero-collections/src/davdag.rs +++ b/aero-collections/src/davdag.rs @@ -93,7 +93,7 @@ impl DavDag { } /// Resolve a sync token - pub fn resolve(&self, known: UniqueIdent) -> Result<OrdSet<UniqueIdent>> { + pub fn resolve(&self, known: Token) -> Result<OrdSet<Token>> { let already_known = self.all_ancestors(known); // We can't capture all missing events if we are not connected @@ -112,7 +112,7 @@ impl DavDag { } /// Find all ancestors of a given node - fn all_ancestors(&self, known: UniqueIdent) -> OrdSet<UniqueIdent> { + fn all_ancestors(&self, known: Token) -> OrdSet<Token> { let mut all_known: OrdSet<UniqueIdent> = OrdSet::new(); let mut to_collect = vec![known]; loop { |