diff --git a/src/json_rescue_v5_extract.rs b/src/json_rescue_v5_extract.rs index 12f72c2..adc44b0 100644 --- a/src/json_rescue_v5_extract.rs +++ b/src/json_rescue_v5_extract.rs @@ -98,7 +98,7 @@ pub fn decode_transaction_args(wtx: &mut WarehouseTxMaster, tx_bytes: &[u8]) -> } ScriptFunctionCallGenesis::AutopayCreateInstruction { payee, .. } => { wtx.relation_label = - RelationLabel::Transfer(cast_legacy_account(destination)?); + RelationLabel::Transfer(cast_legacy_account(payee)?); wtx.entry_function = Some(EntryFunctionArgs::V5(sf.to_owned())); } ScriptFunctionCallGenesis::CreateAccUser { .. } => { diff --git a/src/json_rescue_v5_load.rs b/src/json_rescue_v5_load.rs index 179b41d..aa56c3c 100644 --- a/src/json_rescue_v5_load.rs +++ b/src/json_rescue_v5_load.rs @@ -13,7 +13,6 @@ use std::path::Path; use std::sync::Arc; use tokio::sync::{Mutex, Semaphore}; use tokio::task; -use sysinfo::{System, SystemExt}; /// How many records to read from the archives before attempting insert // static LOAD_QUEUE_SIZE: usize = 1000;