Kaynağa Gözat

bin: Fix compilation for RpcClient dependents.

parazyd 3 yıl önce
ebeveyn
işleme
52599c947b

+ 1 - 1
bin/dnetview/src/rpc.rs

@@ -33,7 +33,7 @@ pub struct RpcConnect {
 
 impl RpcConnect {
     pub async fn new(url: Url, name: String) -> Result<Self> {
-        let rpc_client = RpcClient::new(url).await?;
+        let rpc_client = RpcClient::new(url, None).await?;
         Ok(Self { name, rpc_client })
     }
 

+ 1 - 1
bin/drk/src/main.rs

@@ -464,7 +464,7 @@ pub struct Drk {
 
 impl Drk {
     async fn new(endpoint: Url) -> Result<Self> {
-        let rpc_client = RpcClient::new(endpoint).await?;
+        let rpc_client = RpcClient::new(endpoint, None).await?;
         Ok(Self { rpc_client })
     }
 

+ 1 - 1
bin/drk/src/rpc_airdrop.rs

@@ -37,7 +37,7 @@ impl Drk {
         amount: f64,
         address: PublicKey,
     ) -> Result<String> {
-        let rpc_client = RpcClient::new(faucet_endpoint).await?;
+        let rpc_client = RpcClient::new(faucet_endpoint, None).await?;
 
         // First we request a VDF challenge from the faucet
         let params = json!([format!("{}", address)]);

+ 2 - 2
bin/drk/src/rpc_blockchain.rs

@@ -60,7 +60,7 @@ impl Drk {
         let subscriber = Subscriber::new();
         let subscription = subscriber.clone().subscribe().await;
 
-        let rpc_client = RpcClient::new(endpoint).await?;
+        let rpc_client = RpcClient::new(endpoint, None).await?;
 
         let req = JsonRequest::new("blockchain.subscribe_blocks", json!([]));
         task::spawn(async move { rpc_client.subscribe(req, subscriber).await.unwrap() });
@@ -305,7 +305,7 @@ impl Drk {
         let subscriber = Subscriber::new();
         let subscription = subscriber.clone().subscribe().await;
 
-        let rpc_client = RpcClient::new(endpoint).await?;
+        let rpc_client = RpcClient::new(endpoint, None).await?;
 
         let req = JsonRequest::new("blockchain.subscribe_err_txs", json!([]));
         task::spawn(async move { rpc_client.subscribe(req, subscriber).await.unwrap() });

+ 1 - 1
bin/fud/fu/src/main.rs

@@ -137,7 +137,7 @@ async fn main() -> Result<()> {
     let log_config = get_log_config(args.verbose);
     TermLogger::init(log_level, log_config, TerminalMode::Mixed, ColorChoice::Auto)?;
 
-    let rpc_client = RpcClient::new(args.endpoint).await?;
+    let rpc_client = RpcClient::new(args.endpoint, None).await?;
     let fu = Fu { rpc_client };
 
     match args.command {

+ 1 - 1
bin/genev/genev-cli/src/main.rs

@@ -70,7 +70,7 @@ async fn main() -> Result<()> {
     let log_config = get_log_config(args.verbose);
     TermLogger::init(log_level, log_config, TerminalMode::Mixed, ColorChoice::Auto)?;
 
-    let rpc_client = RpcClient::new(args.endpoint).await?;
+    let rpc_client = RpcClient::new(args.endpoint, None).await?;
     let gen = Gen { rpc_client };
 
     match args.command {

+ 1 - 1
bin/tau/tau-cli/src/main.rs

@@ -168,7 +168,7 @@ async fn main() -> Result<()> {
     let log_config = get_log_config(args.verbose);
     TermLogger::init(log_level, log_config, TerminalMode::Mixed, ColorChoice::Auto)?;
 
-    let rpc_client = RpcClient::new(args.endpoint).await?;
+    let rpc_client = RpcClient::new(args.endpoint, None).await?;
     let tau = Tau { rpc_client };
 
     let mut filters = args.filters.clone();