Ver Fonte

bin/ircd: change view seen list to hashmap

ghassmo há 3 anos atrás
pai
commit
7e2a9ff947
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      bin/ircd/src/view.rs

+ 3 - 3
bin/ircd/src/view.rs

@@ -1,14 +1,14 @@
-use fxhash::FxHashSet;
+use fxhash::FxHashMap;
 
 use crate::model::{EventId, Model};
 
 struct View {
-    seen: FxHashSet<EventId>,
+    seen: FxHashMap<EventId>,
 }
 
 impl View {
     pub fn new() -> Self {
-        Self { seen: FxHashSet::default() }
+        Self { seen: FxHashMap::default() }
     }
 
     fn process(_model: &Model) {