From d76b39c131a470d08ea2c5e9159ce45dfc2446f6 Mon Sep 17 00:00:00 2001 From: scx1332 Date: Tue, 1 Oct 2024 17:55:38 +0200 Subject: [PATCH] Check if goth will work when set 24s interval --- core/payment/src/dao/cycle.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/payment/src/dao/cycle.rs b/core/payment/src/dao/cycle.rs index a9103b8ae..b949c231c 100644 --- a/core/payment/src/dao/cycle.rs +++ b/core/payment/src/dao/cycle.rs @@ -27,7 +27,7 @@ impl<'c> AsDao<'c> for BatchCycleDao<'c> { fn get_default_payment_cycle_interval() -> chrono::Duration { Duration::from_std( humantime::parse_duration( - &env::var("PAYMENT_CYCLE_DEFAULT_INTERVAL").unwrap_or("24h".to_string()), + &env::var("PAYMENT_CYCLE_DEFAULT_INTERVAL").unwrap_or("24s".to_string()), ) .expect("Failed to parse PAYMENT_CYCLE_DEFAULT_INTERVAL"), ) @@ -37,7 +37,7 @@ fn get_default_payment_cycle_interval() -> chrono::Duration { fn get_default_payment_cycle_extra_pay_time() -> chrono::Duration { Duration::from_std( humantime::parse_duration( - &env::var("PAYMENT_CYCLE_DEFAULT_EXTRA_PAY_TIME").unwrap_or("1h".to_string()), + &env::var("PAYMENT_CYCLE_DEFAULT_EXTRA_PAY_TIME").unwrap_or("1m".to_string()), ) .expect("Failed to parse PAYMENT_CYCLE_DEFAULT_EXTRA_PAY_TIME"), )