From 1bcb29de10a0cbe8896be22b7893398b6a61c75c Mon Sep 17 00:00:00 2001 From: Dario Pizzamiglio <1150680+mediuminvader@users.noreply.github.com> Date: Thu, 15 Feb 2024 17:07:28 +0100 Subject: [PATCH] fix clippy --- dozer-ingestion/aerospike/src/connector.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dozer-ingestion/aerospike/src/connector.rs b/dozer-ingestion/aerospike/src/connector.rs index 87b3efc6aa..fe71be5658 100644 --- a/dozer-ingestion/aerospike/src/connector.rs +++ b/dozer-ingestion/aerospike/src/connector.rs @@ -384,7 +384,7 @@ impl Connector for AerospikeConnector { let start = SystemTime::now(); let since_the_epoch = start.duration_since(UNIX_EPOCH).expect("Invalid time"); let lut = Duration::from_millis(last_checkpoint.txid); - let seconds = (since_the_epoch - lut + Duration::from_secs(60)).as_secs() as u64; + let seconds = (since_the_epoch - lut + Duration::from_secs(60)).as_secs(); CString::new(format!( "set-config:context=xdr;dc={}namespace={};action=add;rewind={}", dc_name, namespace, seconds