Selaa lähdekoodia

event_graph and evgrd: use INITIAL_GENESIS as seconds in for prune task as well

dasman 1 vuosi sitten
vanhempi
sitoutus
86afe8d896
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      script/evgrd/src/lib.rs
  2. 1 1
      src/event_graph/mod.rs

+ 1 - 1
script/evgrd/src/lib.rs

@@ -173,7 +173,7 @@ impl LocalEventGraph {
 
         loop {
             // Find the next rotation timestamp:
-            let next_rotation = next_rotation_timestamp(INITIAL_GENESIS, days_rotation);
+            let next_rotation = next_rotation_timestamp(INITIAL_GENESIS / 1000, days_rotation);
 
             // Prepare the new genesis event
             let current_genesis = Event {

+ 1 - 1
src/event_graph/mod.rs

@@ -509,7 +509,7 @@ impl EventGraph {
 
         loop {
             // Find the next rotation timestamp:
-            let next_rotation = next_rotation_timestamp(INITIAL_GENESIS, days_rotation);
+            let next_rotation = next_rotation_timestamp(INITIAL_GENESIS / 1000, days_rotation);
 
             // Prepare the new genesis event
             let current_genesis = Event {