Skip to content

Commit

Permalink
Fix for last_transaction_timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
avbel committed May 24, 2024
1 parent e77cb2c commit 63d969e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rust/processor/src/processors/mercato_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,8 @@ impl ProcessorTrait for MercatoProcessor {

println!("Processing new {} transactions", filtered_transactions.len());


let processing_start = std::time::Instant::now();
let last_transaction_timestamp = filtered_transactions.last().unwrap().timestamp.clone();
let last_transaction_timestamp = transactions.last().unwrap().timestamp.clone();
let (txns, block_metadata_txns, _, wsc_details) = TransactionModel::from_transactions(&filtered_transactions);
let processing_duration_in_secs = processing_start.elapsed().as_secs_f64();
let db_insertion_start = std::time::Instant::now();
Expand Down

0 comments on commit 63d969e

Please sign in to comment.