mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-18 17:26:19 +00:00
Delete obsolete commented code
This commit is contained in:
@@ -31,11 +31,6 @@ struct Opt {
|
||||
/// Custom certificate authority to trust, in DER format
|
||||
#[structopt(parse(from_os_str), long = "ca")]
|
||||
ca: Option<PathBuf>,
|
||||
/*
|
||||
/// file to read/write session tickets to
|
||||
#[structopt(long = "session-cache", parse(from_os_str))]
|
||||
session_cache: Option<PathBuf>,
|
||||
*/
|
||||
}
|
||||
|
||||
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]);
|
||||
|
||||
Reference in New Issue
Block a user