remove Result<> return from ClusterInfo::new() (#1869)

strip Result<> for ClusterInfo::new()
This commit is contained in:
Rob Walker
2018-11-19 11:25:14 -08:00
committed by GitHub
parent c1af48bd85
commit 3d113611cc
12 changed files with 29 additions and 43 deletions

View File

@@ -20,7 +20,7 @@ use std::time::Duration;
fn test_node(exit: Arc<AtomicBool>) -> (Arc<RwLock<ClusterInfo>>, Ncp, UdpSocket) {
let mut tn = Node::new_localhost();
let cluster_info = ClusterInfo::new(tn.info.clone()).expect("ClusterInfo::new");
let cluster_info = ClusterInfo::new(tn.info.clone());
let c = Arc::new(RwLock::new(cluster_info));
let w = Arc::new(RwLock::new(vec![]));
let d = Ncp::new(&c.clone(), w, None, tn.sockets.gossip, exit);