remove anyhow

This commit is contained in:
2025-11-17 19:57:49 -05:00
parent 86bc692987
commit 34faa94a36
3 changed files with 2 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ impl NetSender {
}
}
// async fn connection_cert(addr: SocketAddr) -> anyhow::Result<Connection> {
// async fn connection_cert(addr: SocketAddr) -> NetResult<Connection> {
// let dirs = directories_next::ProjectDirs::from("", "", "openworm").unwrap();
// let mut roots = quinn::rustls::RootCertStore::empty();
// match fs::read(dirs.data_local_dir().join("cert.der")) {
@@ -69,7 +69,7 @@ impl NetSender {
// endpoint
// .connect(addr, SERVER_NAME)?
// .await
// .map_err(|e| anyhow::anyhow!("failed to connect: {}", e))
// .map_err(|e| format!("failed to connect: {}", e))
// }
async fn connection_no_cert(addr: SocketAddr) -> NetResult<Connection> {