From 375836cf6322bc31828c5e2be47e5f0aa5f99099 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sun, 21 Jan 2018 23:47:14 -0800 Subject: procol cleanups: nodelay, from_tcp, tosocketaddr --- src/bin/geniza-net.rs | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/bin') diff --git a/src/bin/geniza-net.rs b/src/bin/geniza-net.rs index 99ebdb5..4b3fa30 100644 --- a/src/bin/geniza-net.rs +++ b/src/bin/geniza-net.rs @@ -23,13 +23,6 @@ fn run() -> Result<()> { .arg_from_usage(" 'peer host:port to connect to'") .arg_from_usage(" 'dat key (public key) to register with'"), ) - .subcommand( - SubCommand::with_name("receive-some") - .about("Connects to a peer, pulls some metadata and content") - .arg_from_usage(" 'peer host:port to connect to'") - .arg_from_usage(" 'dat key (public key) to register with'") - .arg_from_usage(" 'how many entries to pull'"), - ) .subcommand( SubCommand::with_name("discovery-key") .about("Prints (in hex) the discovery key for a dat archive") @@ -69,16 +62,6 @@ fn run() -> Result<()> { DatConnection::connect(host_port, &key_bytes, false)?; println!("Done!"); } - ("receive-some", Some(subm)) => { - let host_port = subm.value_of("host_port").unwrap(); - let dat_key = subm.value_of("dat_key").unwrap(); - let count: u64 = subm.value_of("count").unwrap().parse().unwrap(); - let key_bytes = parse_dat_address(&dat_key)?; - let mut dc = DatConnection::connect(host_port, &key_bytes, false)?; - dc.receive_some(0, count)?; - dc.receive_some(1, count)?; - println!("Done!"); - } ("discovery-key", Some(subm)) => { let dat_key = subm.value_of("dat_key").unwrap(); let key_bytes = parse_dat_address(&dat_key)?; -- cgit v1.2.3