Browse Source

部分数据500毫秒才更新一次

skyffire 9 tháng trước cách đây
mục cha
commit
023fe26349
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      strategy/src/predictor.rs

+ 1 - 1
strategy/src/predictor.rs

@@ -384,7 +384,7 @@ impl Predictor {
 
         let flow_ratio = Decimal::ZERO;
 
-        let need_append = now - self.prev_insert_time > Decimal::ONE_HUNDRED;
+        let need_append = now - self.prev_insert_time > dec!(500);
         if !need_append && !is_hard_update {
             return;
         }