From c76fd5b9b0a3bba6c8ffa847e5fc818661e800d6 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/transport/libp2p/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/transport') 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", -- cgit v1.3.1