Explorar o código

darkfid: Minor cleanup.

parazyd %!s(int64=4) %!d(string=hai) anos
pai
achega
30cc60679f
Modificáronse 2 ficheiros con 2 adicións e 5 borrados
  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 serde_json::{json, Value};
 
 
-use darkfi::{
-    rpc::{jsonrpc, jsonrpc::JsonResult},
-    Result,
-};
+use darkfi::rpc::{jsonrpc, jsonrpc::JsonResult};
 
 
 use super::Darkfid;
 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(),
             Ok(res) => jsonrpc::response(json!(res), id).into(),
             Err(e) => {
             Err(e) => {
                 error!("Failed fetching balances from wallet: {}", e);
                 error!("Failed fetching balances from wallet: {}", e);
-                return jsonrpc::error(InternalError, None, id).into()
+                jsonrpc::error(InternalError, None, id).into()
             }
             }
         }
         }
     }
     }