prevent unwrap in get_block_range
This commit is contained in:
@@ -1503,8 +1503,7 @@ pub fn start_mempool_monitor(lc: Arc<LightClient>) -> Result<(), String> {
|
||||
let block_times = block_times.clone();
|
||||
|
||||
pool.execute(move || {
|
||||
println!("Fetching transactions for address: {}", address_clone);
|
||||
|
||||
|
||||
let r = fetch_transparent_txids(
|
||||
&server_uri,
|
||||
address,
|
||||
@@ -1545,7 +1544,7 @@ pub fn start_mempool_monitor(lc: Arc<LightClient>) -> Result<(), String> {
|
||||
);
|
||||
|
||||
match ctx.send(r) {
|
||||
Ok(_) => println!("Successfully sent data for address: {}", address_clone),
|
||||
Ok(_) => info!("Successfully sent data for address: {}", address_clone),
|
||||
Err(e) => println!("Failed to send data for address: {}: {:?}", address_clone, e),
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user