From 9c45cb3e478a519182a7d9bf48af1529b2ccc457 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 31 Oct 2026 05:28:26 +0100 Subject: move warn_if_readable_by_others to files module --- src/identity.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/identity.rs') 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}", -- cgit v1.3.1