parazyd 4 лет назад
Родитель
Сommit
30cc60679f
2 измененных файлов с 2 добавлено и 5 удалено
  1. 1 4
      bin/darkfid2/src/rpc_misc.rs
  2. 1 1
      bin/darkfid2/src/rpc_wallet.rs

+ 1 - 4
bin/darkfid2/src/rpc_misc.rs

@@ -1,9 +1,6 @@
 use serde_json::{json, Value};
 
-use darkfi::{
-    rpc::{jsonrpc, jsonrpc::JsonResult},
-    Result,
-};
+use darkfi::rpc::{jsonrpc, jsonrpc::JsonResult};
 
 use super::Darkfid;
 

+ 1 - 1
bin/darkfid2/src/rpc_wallet.rs

@@ -236,7 +236,7 @@ impl Darkfid {
             Ok(res) => jsonrpc::response(json!(res), id).into(),
             Err(e) => {
                 error!("Failed fetching balances from wallet: {}", e);
-                return jsonrpc::error(InternalError, None, id).into()
+                jsonrpc::error(InternalError, None, id).into()
             }
         }
     }