Bläddra i källkod

bin/ircd: change view seen list to hashmap

ghassmo 3 år sedan
förälder
incheckning
7e2a9ff947
1 ändrade filer med 3 tillägg och 3 borttagningar
  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) {