瀏覽代碼

event_graph: complete doc of EventGraph fields

dasman 2 年之前
父節點
當前提交
953049a36c
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/event_graph/mod.rs

+ 3 - 2
src/event_graph/mod.rs

@@ -88,9 +88,10 @@ pub struct EventGraph {
     p2p: P2pPtr,
     p2p: P2pPtr,
     /// Sled tree containing the DAG
     /// Sled tree containing the DAG
     dag: sled::Tree,
     dag: sled::Tree,
-
+    /// Replay logs path.
     datastore: PathBuf,
     datastore: PathBuf,
-
+    /// Run in replay_mode where if set we log Sled DB instructions
+    /// into `datastore`, useful to reacreate a faulty DAG to debug.
     replay_mode: bool,
     replay_mode: bool,
     /// The set of unreferenced DAG tips
     /// The set of unreferenced DAG tips
     unreferenced_tips: RwLock<BTreeMap<u64, HashSet<blake3::Hash>>>,
     unreferenced_tips: RwLock<BTreeMap<u64, HashSet<blake3::Hash>>>,