Append integer to solBigTGetBlk threads to uniquify them (#30184)

This commit is contained in:
steviez 2023-02-08 18:23:29 -06:00 committed by GitHub
parent 5569946a8f
commit 55c8963462
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -162,13 +162,13 @@ pub async fn upload_confirmed_blocks(
(
(0..config.num_blocks_to_upload_in_parallel)
.map(|_| {
.map(|i| {
let blockstore = blockstore.clone();
let sender = sender.clone();
let slot_receiver = slot_receiver.clone();
let exit = exit.clone();
std::thread::Builder::new()
.name("solBigTGetBlk".into())
.name(format!("solBigTGetBlk{i:02}"))
.spawn(move || {
let start = Instant::now();
let mut num_blocks_read = 0;