migrated checkpoint handling in integrity.rs to ssot principle
This commit is contained in:
@@ -245,7 +245,7 @@ fn get_fallback_rate(currency: &str) -> f64 {
|
||||
/// - Integrity tracking with content hash validation
|
||||
pub async fn collect_and_save_exchanges(paths: &DataPaths) -> anyhow::Result<usize> {
|
||||
let state_path = paths.data_dir().join("state.jsonl");
|
||||
let manager = StateManager::new(&state_path, &paths.data_dir().to_path_buf());
|
||||
let manager = StateManager::new(&state_path, &paths.data_dir().to_path_buf())?;
|
||||
let step_name = "exchange_collection_complete";
|
||||
|
||||
let output_path = paths.data_dir().join("yahoo_exchanges.json");
|
||||
@@ -407,7 +407,6 @@ async fn track_exchange_collection_completion(
|
||||
step_name.to_string(),
|
||||
content_reference,
|
||||
DataStage::Data,
|
||||
vec![], // No explicit dependencies - output file serves as verification
|
||||
None, // Use default TTL (7 days for Data stage)
|
||||
).await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user