perf(era-utils): avoid unnecessary PathBuf clone in export (#19530)

This commit is contained in:
Avory
2025-11-06 11:04:24 +02:00
committed by GitHub
parent 0928059f5c
commit 791de250d7

View File

@@ -219,12 +219,12 @@ where
writer.write_accumulator(&accumulator)?;
writer.write_block_index(&block_index)?;
writer.flush()?;
created_files.push(file_path.clone());
info!(
target: "era::history::export",
"Wrote ERA1 file: {file_path:?} with {blocks_written} blocks"
);
created_files.push(file_path);
}
}