Bump jsonrpc crates and remove old tokio (#18779)
* Bump jsonrpc crates and replace old tokio * Bump tokio * getBlockTime * getBlocks * getBlocksWithLimit, getInflationReward * getBlock * getFirstAvailableBlock * getTransaction * getSignaturesForAddress * getSignatureStatuses * Remove superfluous runtime
This commit is contained in:
@ -19,11 +19,11 @@ console = "0.14.1"
|
||||
core_affinity = "0.5.10"
|
||||
fd-lock = "3.0.0"
|
||||
indicatif = "0.16.2"
|
||||
jsonrpc-core = "17.1.0"
|
||||
jsonrpc-core-client = { version = "17.1.0", features = ["ipc", "ws"] }
|
||||
jsonrpc-derive = "17.1.0"
|
||||
jsonrpc-ipc-server = "17.1.0"
|
||||
jsonrpc-server-utils= "17.1.0"
|
||||
jsonrpc-core = "18.0.0"
|
||||
jsonrpc-core-client = { version = "18.0.0", features = ["ipc", "ws"] }
|
||||
jsonrpc-derive = "18.0.0"
|
||||
jsonrpc-ipc-server = "18.0.0"
|
||||
jsonrpc-server-utils= "18.0.0"
|
||||
log = "0.4.14"
|
||||
num_cpus = "1.13.0"
|
||||
rand = "0.7.0"
|
||||
|
@ -172,10 +172,9 @@ impl AdminRpc for AdminRpcImpl {
|
||||
pub fn run(ledger_path: &Path, metadata: AdminRpcRequestMetadata) {
|
||||
let admin_rpc_path = ledger_path.join("admin.rpc");
|
||||
|
||||
let event_loop = tokio::runtime::Builder::new()
|
||||
.threaded_scheduler()
|
||||
.enable_all()
|
||||
let event_loop = tokio::runtime::Builder::new_multi_thread()
|
||||
.thread_name("sol-adminrpc-el")
|
||||
.enable_all()
|
||||
.build()
|
||||
.unwrap();
|
||||
|
||||
|
@ -64,7 +64,7 @@ impl Dashboard {
|
||||
} = self;
|
||||
drop(progress_bar);
|
||||
|
||||
let mut runtime = admin_rpc_service::runtime();
|
||||
let runtime = admin_rpc_service::runtime();
|
||||
while !exit.load(Ordering::Relaxed) {
|
||||
let progress_bar = new_spinner_progress_bar();
|
||||
progress_bar.set_message("Connecting...");
|
||||
|
Reference in New Issue
Block a user