aboutsummaryrefslogtreecommitdiffstats
path: root/src/transport/libp2p/config.rs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-31 05:28:26 +0100
committertv <tv@krebsco.de>2026-10-31 05:28:26 +0100
commitc76fd5b9b0a3bba6c8ffa847e5fc818661e800d6 (patch)
tree56441e7534fc4d25381c8d368f98d9528551f1df /src/transport/libp2p/config.rs
parent8802997e3adfe43b2e084f3695f8620fdfc36759 (diff)
move warn_if_readable_by_others to files module
Diffstat (limited to 'src/transport/libp2p/config.rs')
-rw-r--r--src/transport/libp2p/config.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transport/libp2p/config.rs b/src/transport/libp2p/config.rs
index 012999d..719f2e8 100644
--- a/src/transport/libp2p/config.rs
+++ b/src/transport/libp2p/config.rs
@@ -103,7 +103,7 @@ impl Libp2pConfig {
};
let mut bytes = std::fs::read(path)
.with_context(|| format!("Reading the libp2p key from {}", path.display()))?;
- crate::swarm::auth::warn_if_readable_by_others(path, "libp2p key");
+ crate::files::warn_if_readable_by_others(path, "libp2p key");
if bytes.len() != 32 {
bail!(
"The libp2p key in {} has {} bytes; it has 32",