Skip to content

Commit

Permalink
Check if goth will work when set 24s interval
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Oct 1, 2024
1 parent 14647bc commit d76b39c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/payment/src/dao/cycle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
)
Expand All @@ -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"),
)
Expand Down

0 comments on commit d76b39c

Please sign in to comment.