Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cob: Remove EntryId and RevisionId conversions
Fintan Halpenny committed 2 years ago
commit bf8cee2446a7c9933d8459ff75b703dcf52f3f38
parent 287a920d1277d8f59a77bb324c2b6977e89b76f2
2 files changed +5 -5
modified radicle-cob/src/change_graph.rs
@@ -7,8 +7,8 @@ use git_ext::Oid;
use radicle_dag::Dag;

use crate::{
-
    change, history::EntryId, object, signatures::ExtendedSignature, CollaborativeObject, Entry,
-
    History, ObjectId, TypeName,
+
    change, object, signatures::ExtendedSignature, CollaborativeObject, Entry, History, ObjectId,
+
    TypeName,
};

/// The graph of changes for a particular collaborative object
@@ -102,10 +102,10 @@ impl ChangeGraph {
                graph.node(id, entry);

                for k in &change.dependents {
-
                    graph.dependency(EntryId::from(*k), id);
+
                    graph.dependency(*k, id);
                }
                for k in &change.dependencies {
-
                    graph.dependency(id, EntryId::from(*k));
+
                    graph.dependency(id, *k);
                }
                ControlFlow::Continue(graph)
            });
modified radicle/src/cob/store.rs
@@ -367,7 +367,7 @@ impl<T: FromHistory> Transaction<T> {
            object,
            parents,
        } = store.update(id, msg, actions.clone(), self.embeds, signer)?;
-
        let id = EntryId::from(head);
+
        let id = head;
        let author = self.actor;
        let timestamp = Timestamp::from_secs(object.history().timestamp());
        let identity = store.identity;