diff options
| author | tv <tv@krebsco.de> | 2026-10-31 05:28:26 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-31 05:28:26 +0100 |
| commit | 155c675dd5733b1887ee165689380c64134f173c (patch) | |
| tree | 82e572f9dfd4a09b0dc4e8b7ee8f75f84dfe0a58 /src/transport | |
| parent | e64b9de5ee572b503b11b95df843ea64466902e7 (diff) | |
move warn_if_readable_by_others to files module
Diffstat (limited to 'src/transport')
| -rw-r--r-- | src/transport/libp2p/config.rs | 2 |
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", |
