SendTransactionServices now exit their thread on channel drop instead of by a flag (bp #12333) (#12335)
* Give the duplicate send_transaction_service a different thread name (cherry picked from commit75c3690ccd
) * SendTransactionServices now exit their thread on channel drop instead of by a flag (cherry picked from commitc4913e3c9e
) Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
@@ -313,14 +313,12 @@ impl JsonRpcService {
|
||||
bigtable_ledger_storage,
|
||||
);
|
||||
|
||||
let exit_send_transaction_service = Arc::new(AtomicBool::new(false));
|
||||
let leader_info =
|
||||
poh_recorder.map(|recorder| LeaderInfo::new(cluster_info.clone(), recorder));
|
||||
let _send_transaction_service = Arc::new(SendTransactionService::new(
|
||||
tpu_address,
|
||||
&bank_forks,
|
||||
leader_info,
|
||||
&exit_send_transaction_service,
|
||||
receiver,
|
||||
));
|
||||
|
||||
@@ -369,7 +367,6 @@ impl JsonRpcService {
|
||||
let server = server.unwrap();
|
||||
close_handle_sender.send(server.close_handle()).unwrap();
|
||||
server.wait();
|
||||
exit_send_transaction_service.store(true, Ordering::Relaxed);
|
||||
exit_bigtable_ledger_upload_service.store(true, Ordering::Relaxed);
|
||||
})
|
||||
.unwrap();
|
||||
|
Reference in New Issue
Block a user