Remove dead code
This commit is contained in:
parent
b03fd782de
commit
b1763f9187
|
@ -170,7 +170,6 @@ fn verify_signature(input: &str) -> Result<Signature> {
|
||||||
pub struct Meta {
|
pub struct Meta {
|
||||||
pub request_processor: Arc<RwLock<JsonRpcRequestProcessor>>,
|
pub request_processor: Arc<RwLock<JsonRpcRequestProcessor>>,
|
||||||
pub cluster_info: Arc<RwLock<ClusterInfo>>,
|
pub cluster_info: Arc<RwLock<ClusterInfo>>,
|
||||||
pub rpc_addr: SocketAddr,
|
|
||||||
pub drone_addr: SocketAddr,
|
pub drone_addr: SocketAddr,
|
||||||
}
|
}
|
||||||
impl Metadata for Meta {}
|
impl Metadata for Meta {}
|
||||||
|
@ -436,7 +435,6 @@ mod tests {
|
||||||
|
|
||||||
cluster_info.write().unwrap().insert_info(leader.clone());
|
cluster_info.write().unwrap().insert_info(leader.clone());
|
||||||
cluster_info.write().unwrap().set_leader(leader.id);
|
cluster_info.write().unwrap().set_leader(leader.id);
|
||||||
let rpc_addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), 0);
|
|
||||||
let drone_addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), 0);
|
let drone_addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), 0);
|
||||||
|
|
||||||
let mut io = MetaIoHandler::default();
|
let mut io = MetaIoHandler::default();
|
||||||
|
@ -446,7 +444,6 @@ mod tests {
|
||||||
request_processor,
|
request_processor,
|
||||||
cluster_info,
|
cluster_info,
|
||||||
drone_addr,
|
drone_addr,
|
||||||
rpc_addr,
|
|
||||||
};
|
};
|
||||||
(io, meta, blockhash, alice)
|
(io, meta, blockhash, alice)
|
||||||
}
|
}
|
||||||
|
@ -638,7 +635,6 @@ mod tests {
|
||||||
},
|
},
|
||||||
cluster_info: Arc::new(RwLock::new(ClusterInfo::new(NodeInfo::default()))),
|
cluster_info: Arc::new(RwLock::new(ClusterInfo::new(NodeInfo::default()))),
|
||||||
drone_addr: SocketAddr::new(IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), 0),
|
drone_addr: SocketAddr::new(IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), 0),
|
||||||
rpc_addr: SocketAddr::new(IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), 0),
|
|
||||||
};
|
};
|
||||||
|
|
||||||
let req =
|
let req =
|
||||||
|
|
|
@ -52,7 +52,6 @@ impl JsonRpcService {
|
||||||
request_processor: request_processor_.clone(),
|
request_processor: request_processor_.clone(),
|
||||||
cluster_info: info.clone(),
|
cluster_info: info.clone(),
|
||||||
drone_addr,
|
drone_addr,
|
||||||
rpc_addr,
|
|
||||||
}).threads(4)
|
}).threads(4)
|
||||||
.cors(DomainsValidation::AllowOnly(vec![
|
.cors(DomainsValidation::AllowOnly(vec![
|
||||||
AccessControlAllowOrigin::Any,
|
AccessControlAllowOrigin::Any,
|
||||||
|
|
Loading…
Reference in New Issue