diff --git a/core/src/rpc.rs b/core/src/rpc.rs index 454658d70f..b81a338fd4 100644 --- a/core/src/rpc.rs +++ b/core/src/rpc.rs @@ -170,7 +170,6 @@ fn verify_signature(input: &str) -> Result { pub struct Meta { pub request_processor: Arc>, pub cluster_info: Arc>, - pub rpc_addr: SocketAddr, pub drone_addr: SocketAddr, } impl Metadata for Meta {} @@ -436,7 +435,6 @@ mod tests { cluster_info.write().unwrap().insert_info(leader.clone()); 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 mut io = MetaIoHandler::default(); @@ -446,7 +444,6 @@ mod tests { request_processor, cluster_info, drone_addr, - rpc_addr, }; (io, meta, blockhash, alice) } @@ -638,7 +635,6 @@ mod tests { }, cluster_info: Arc::new(RwLock::new(ClusterInfo::new(NodeInfo::default()))), 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 = diff --git a/core/src/rpc_service.rs b/core/src/rpc_service.rs index 1f3d34eda4..0651defe0a 100644 --- a/core/src/rpc_service.rs +++ b/core/src/rpc_service.rs @@ -52,7 +52,6 @@ impl JsonRpcService { request_processor: request_processor_.clone(), cluster_info: info.clone(), drone_addr, - rpc_addr, }).threads(4) .cors(DomainsValidation::AllowOnly(vec![ AccessControlAllowOrigin::Any,