Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
radicle: impl AliasStore for Profile
Fintan Halpenny committed 2 years ago
commit 93a6f90d6e7a973228895beecd1d0a2fab0ff2a6
parent 7d4ce8207d6616f9c6cc488503491cf08e2ff054
1 file changed +6 -0
modified radicle/src/profile.rs
@@ -381,6 +381,12 @@ impl std::ops::DerefMut for Profile {
    }
}

+
impl AliasStore for Profile {
+
    fn alias(&self, nid: &NodeId) -> Option<Alias> {
+
        self.aliases().alias(nid)
+
    }
+
}
+

/// Holds multiple alias stores, and will try
/// them one by one when asking for an alias.
pub struct Aliases {