Remove core dependencies from SendTransactionService (#10965)

* Remove core dependencies from SendTransactionService

* Fix clippy warnings
This commit is contained in:
Greg Fitzgerald
2020-07-08 19:13:42 -06:00
committed by GitHub
parent ebadbce920
commit 17a8cc862b
3 changed files with 38 additions and 57 deletions

View File

@@ -250,9 +250,10 @@ impl JsonRpcService {
override_health_check,
));
let tpu_address = cluster_info.my_contact_info().tpu;
let exit_send_transaction_service = Arc::new(AtomicBool::new(false));
let send_transaction_service = Arc::new(SendTransactionService::new(
&cluster_info,
tpu_address,
&bank_forks,
&exit_send_transaction_service,
));