We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccfc700 commit 7c19da4Copy full SHA for 7c19da4
iroh-dns-server/src/http/tls.rs
@@ -148,7 +148,9 @@ async fn load_certs(
148
async fn load_secret_key(
149
filename: impl AsRef<Path>,
150
) -> Result<rustls::pki_types::PrivateKeyDer<'static>> {
151
- let keyfile = std::fs::read(filename.as_ref()).context("cannot open secret key file")?;
+ let keyfile = tokio::fs::read(filename.as_ref())
152
+ .await
153
+ .context("cannot open secret key file")?;
154
let mut reader = std::io::Cursor::new(keyfile);
155
156
loop {
0 commit comments