From f31bb03cc09b8aab3129a08df25f8a3bd4f00735 Mon Sep 17 00:00:00 2001 From: Benjamin Saunders Date: Mon, 14 Jan 2019 19:15:40 -0800 Subject: [PATCH] Delete obsolete commented code --- quinn/examples/client.rs | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/quinn/examples/client.rs b/quinn/examples/client.rs index 800d20373..e5caa86f4 100644 --- a/quinn/examples/client.rs +++ b/quinn/examples/client.rs @@ -31,11 +31,6 @@ struct Opt { /// Custom certificate authority to trust, in DER format #[structopt(parse(from_os_str), long = "ca")] ca: Option, - /* - /// file to read/write session tickets to - #[structopt(long = "session-cache", parse(from_os_str))] - session_cache: Option, - */ } fn main() { @@ -64,21 +59,6 @@ fn run(log: Logger, options: Opt) -> Result<()> { .next() .ok_or(format_err!("couldn't resolve to an address"))?; - /* - let ticket; - if let Some(path) = options.session_cache.take() { - ticket = match fs::read(&path) { - Ok(x) => Some(x), - Err(ref e) if e.kind() == io::ErrorKind::NotFound => None, - Err(e) => { - return Err(e.into()); - } - }; - } else { - ticket = None; - } - */ - let mut endpoint = quinn::Endpoint::new(); let mut client_config = quinn::ClientConfigBuilder::new(); client_config.set_protocols(&[quinn::ALPN_QUIC_HTTP]);