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
commitc76fd5b9b0a3bba6c8ffa847e5fc818661e800d6 (patch)
tree56441e7534fc4d25381c8d368f98d9528551f1df /src/identity.rs
parent8802997e3adfe43b2e084f3695f8620fdfc36759 (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}",