aboutsummaryrefslogtreecommitdiffstats
path: root/src/identity.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
commit9c45cb3e478a519182a7d9bf48af1529b2ccc457 (patch)
tree89b88ebc310f243c95441e953f04e6842604bb45 /src/identity.rs
parent6823476285a846efc96147c1e727987da7939e1f (diff)
move warn_if_readable_by_others to files module
Diffstat (limited to 'src/identity.rs')
-rw-r--r--src/identity.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/identity.rs b/src/identity.rs
index 96e524e..8efe30f 100644
--- a/src/identity.rs
+++ b/src/identity.rs
@@ -48,7 +48,7 @@ impl NodeKey {
.with_context(|| format!("Reading the node key from {}", path.display()));
}
};
- crate::swarm::auth::warn_if_readable_by_others(path, "node key");
+ crate::files::warn_if_readable_by_others(path, "node key");
let Ok(seed) = <[u8; KEY_BYTES]>::try_from(bytes.as_slice()) else {
bail!(
"The node key in {} has {} bytes; a node key has {KEY_BYTES}",