mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-10 21:37:22 +00:00
Update to 2024 edition (#2001)
* Update to 2024 edition * Update to 2024 edition; fmt, use<> and remove refs * async functions
This commit is contained in:
@@ -9,8 +9,8 @@ use std::time::Duration;
|
||||
use substrate_runner::SubstrateNode;
|
||||
use subxt::backend::rpc::reconnecting_rpc_client::{ExponentialBackoff, RpcClientBuilder};
|
||||
use subxt::{
|
||||
backend::{chain_head, legacy, rpc},
|
||||
Config, OnlineClient,
|
||||
backend::{chain_head, legacy, rpc},
|
||||
};
|
||||
|
||||
// The URL that we'll connect to for our tests comes from SUBXT_TEXT_HOST env var,
|
||||
@@ -62,7 +62,7 @@ where
|
||||
|
||||
pub async fn restart(mut self) -> Self {
|
||||
tokio::task::spawn_blocking(move || {
|
||||
if let Some(ref mut proc) = &mut self.proc {
|
||||
if let Some(proc) = &mut self.proc {
|
||||
proc.restart().unwrap();
|
||||
}
|
||||
self
|
||||
|
||||
Reference in New Issue
Block a user