mirror of
https://github.com/mikedilger/chorus.git
synced 2026-05-03 06:51:42 +00:00
fix test compile error
This commit is contained in:
parent
dd8e345e86
commit
e10104a55b
@ -156,9 +156,9 @@ mod test {
|
|||||||
#[test]
|
#[test]
|
||||||
fn test_hashed_ip() {
|
fn test_hashed_ip() {
|
||||||
let ipaddr: std::net::IpAddr = "127.0.0.1".parse().unwrap();
|
let ipaddr: std::net::IpAddr = "127.0.0.1".parse().unwrap();
|
||||||
println!("HashedIP={}", HashedIp::new(ipaddr).unwrap());
|
println!("HashedIP={}", HashedIp::new(ipaddr));
|
||||||
|
|
||||||
let socketaddr = std::net::SocketAddr::new(ipaddr, 80);
|
let socketaddr = std::net::SocketAddr::new(ipaddr, 80);
|
||||||
println!("HashedPEER={}", HashedPeer::new(socketaddr).unwrap());
|
println!("HashedPEER={}", HashedPeer::new(socketaddr));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user