ghassmo 3 лет назад
Родитель
Сommit
6b1a6ff3e8
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      bin/ircd/src/mvc.rs

+ 2 - 1
bin/ircd/src/mvc.rs

@@ -211,9 +211,10 @@ impl Model {
         // set the new root
         if let Some(ancestor) = highest_ancestor {
             // TODO change this number 
+            // set to 10 for testing only
             // the ancestor must have at least height > 300
             let ancestor_height = self.find_height(&self.current_root, ancestor).unwrap();
-            if ancestor_height < 300 {
+            if ancestor_height < 10 {
                 return
             }