Add exit flag for bigtable upload operations

This commit is contained in:
Michael Vines
2020-09-04 10:01:00 -07:00
parent bafdcf24f5
commit d3611f74c8
3 changed files with 28 additions and 2 deletions

View File

@ -8,7 +8,12 @@ use solana_cli::display::println_transaction;
use solana_ledger::{blockstore::Blockstore, blockstore_db::AccessType};
use solana_sdk::{clock::Slot, pubkey::Pubkey, signature::Signature};
use solana_transaction_status::UiTransactionEncoding;
use std::{path::Path, process::exit, result::Result, sync::Arc};
use std::{
path::Path,
process::exit,
result::Result,
sync::{atomic::AtomicBool, Arc},
};
async fn upload(
blockstore: Blockstore,
@ -26,6 +31,7 @@ async fn upload(
starting_slot,
ending_slot,
allow_missing_metadata,
Arc::new(AtomicBool::new(false)),
)
.await
}