File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ pub struct TrustedRootCertsCache {
4444
4545impl TrustedRootCertsCache {
4646 /// Cache time-to-live duration (1 day).
47- const TTL : Duration = Duration :: from_secs ( 24 * 60 * 60 ) ;
47+ const TTL : Duration = Duration :: from_days ( 1 ) ;
4848
4949 /// Creates a new cache backed by the provided Kubernetes client.
5050 pub fn new ( k8s_client : Arc < dyn K8sClient > ) -> Self {
Original file line number Diff line number Diff line change @@ -571,9 +571,9 @@ impl PgReplicationClient {
571571 let duration = match unit {
572572 "ms" => Duration :: from_millis ( setting) ,
573573 "s" => Duration :: from_secs ( setting) ,
574- "min" => Duration :: from_secs ( setting. saturating_mul ( 60 ) ) ,
575- "h" => Duration :: from_secs ( setting. saturating_mul ( 60 * 60 ) ) ,
576- "d" => Duration :: from_secs ( setting. saturating_mul ( 60 * 60 * 24 ) ) ,
574+ "min" => Duration :: from_mins ( setting) ,
575+ "h" => Duration :: from_hours ( setting) ,
576+ "d" => Duration :: from_days ( setting) ,
577577 unsupported_unit => {
578578 return Err ( etl_error ! (
579579 ErrorKind :: ConversionError ,
You can’t perform that action at this time.
0 commit comments