aboutsummaryrefslogtreecommitdiffstats
path: root/src/transport
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
commit9c45cb3e478a519182a7d9bf48af1529b2ccc457 (patch)
tree89b88ebc310f243c95441e953f04e6842604bb45 /src/transport
parent6823476285a846efc96147c1e727987da7939e1f (diff)
move warn_if_readable_by_others to files module
Diffstat (limited to 'src/transport')
-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",