chore: fmt

This commit is contained in:
skoupidi
2025-04-15 12:28:08 +03:00
parent 8c1b93c607
commit 0d30a230fa
2 changed files with 5 additions and 5 deletions

View File

@@ -280,9 +280,9 @@ pub async fn subscribe_sync_blocks(
};
// Evaluates whether there is a mismatch between the last confirmed block and the last synced block
let blocks_mismatch = (last_darkfid_height != height || last_darkfid_hash != hash)
&& last_darkfid_height != 0
&& height != 0;
let blocks_mismatch = (last_darkfid_height != height || last_darkfid_hash != hash) &&
last_darkfid_height != 0 &&
height != 0;
// Check if there is a mismatch, throwing an error to prevent operating in a potentially inconsistent state
if blocks_mismatch {

View File

@@ -1244,8 +1244,8 @@ mod tests {
// Iterate and load data
for height in 0..HEIGHT {
let timestamp_secs = (UNIX_EPOCH
+ Duration::from_secs(start_time + height as u64 * GAS_METRICS_KEY_TIME_INTERVAL))
let timestamp_secs = (UNIX_EPOCH +
Duration::from_secs(start_time + height as u64 * GAS_METRICS_KEY_TIME_INTERVAL))
.duration_since(UNIX_EPOCH)?
.as_secs();