fix(content): use re-exported federation::record_peer_transport path (repair build)

The B14 commit referenced crate::federation::storage::record_peer_transport
but `storage` is a private module — record_peer_transport is re-exported at
crate::federation::. E0603 broke the build. Use the re-exported path (as
load_nodes/fips_npub_for_onion already do). Verified: cargo build --release
EXIT 0. Also logs B21 (Tor/FIPS pill) plan.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
archipelago
2026-06-15 13:15:01 -04:00
co-authored by Claude Opus 4.8
parent f2e3710c28
commit 1c6dc153ce
2 changed files with 7 additions and 4 deletions
+4 -4
View File
@@ -244,7 +244,7 @@ impl RpcHandler {
.context("Failed to connect to peer")?;
// Record which transport actually reached the peer (B14) so the UI
// reflects FIPS vs Tor truthfully instead of always showing Tor/none.
let _ = crate::federation::storage::record_peer_transport(
let _ = crate::federation::record_peer_transport(
&self.config.data_dir,
None,
Some(onion),
@@ -311,7 +311,7 @@ impl RpcHandler {
.await
.context("Failed to connect to peer")?;
// Record which transport actually reached the peer (B14).
let _ = crate::federation::storage::record_peer_transport(
let _ = crate::federation::record_peer_transport(
&self.config.data_dir,
None,
Some(onion),
@@ -380,7 +380,7 @@ impl RpcHandler {
.await
.context("Failed to connect to peer")?;
// Record which transport actually reached the peer (B14).
let _ = crate::federation::storage::record_peer_transport(
let _ = crate::federation::record_peer_transport(
&self.config.data_dir,
None,
Some(onion),
@@ -451,7 +451,7 @@ impl RpcHandler {
.await
.context("Failed to connect to peer for preview")?;
// Record which transport actually reached the peer (B14).
let _ = crate::federation::storage::record_peer_transport(
let _ = crate::federation::record_peer_transport(
&self.config.data_dir,
None,
Some(onion),