diff --git a/core/archipelago/src/federation/storage.rs b/core/archipelago/src/federation/storage.rs index cd707df8..a4652cc4 100644 --- a/core/archipelago/src/federation/storage.rs +++ b/core/archipelago/src/federation/storage.rs @@ -590,9 +590,10 @@ mod tests { let dir_a = dir.path().to_path_buf(); let dir_b = dir.path().to_path_buf(); - let add_task = tokio::spawn(async move { - add_node(&dir_a, make_node("did:key:zB", "b.onion")).await - }); + let add_task = + tokio::spawn( + async move { add_node(&dir_a, make_node("did:key:zB", "b.onion")).await }, + ); let trust_task = tokio::spawn(async move { set_trust_level(&dir_b, "did:key:zA", TrustLevel::Observer).await }); @@ -703,7 +704,10 @@ mod tests { assert!(result.is_empty(), "returned Vec must be empty"); let nodes = load_nodes(dir.path()).await.unwrap(); - assert!(nodes.is_empty(), "load_nodes must return an empty Vec, not an error"); + assert!( + nodes.is_empty(), + "load_nodes must return an empty Vec, not an error" + ); let removed = load_removed_dids(dir.path()).await.unwrap(); assert!( diff --git a/core/archipelago/src/fips/app_ports.rs b/core/archipelago/src/fips/app_ports.rs index 2f8d25e5..78fb5285 100644 --- a/core/archipelago/src/fips/app_ports.rs +++ b/core/archipelago/src/fips/app_ports.rs @@ -6,39 +6,7 @@ //! no listener, so allowing them is inert. pub const APP_LAUNCH_PORTS: &[u16] = &[ - 2283, - 2342, - 3000, - 3001, - 3002, - 4080, - 5180, - 7778, - 8080, - 8081, - 8082, - 8083, - 8084, - 8085, - 8087, - 8088, - 8089, - 8090, - 8096, - 8123, - 8175, - 8176, - 8240, - 8334, - 8888, - 8999, - 9000, - 9100, - 10380, - 11434, - 18081, - 18083, - 23000, - 32838, - 50002, + 2283, 2342, 3000, 3001, 3002, 4080, 5180, 7778, 8080, 8081, 8082, 8083, 8084, 8085, 8087, 8088, + 8089, 8090, 8096, 8123, 8175, 8176, 8240, 8334, 8888, 8999, 9000, 9100, 10380, 11434, 18081, + 18083, 23000, 32838, 50002, ]; diff --git a/core/archipelago/src/seed.rs b/core/archipelago/src/seed.rs index a8d34703..9a6ef07b 100644 --- a/core/archipelago/src/seed.rs +++ b/core/archipelago/src/seed.rs @@ -602,7 +602,11 @@ mod tests { .map(|_| MasterSeed::generate().unwrap().0.to_string()) .collect(); let unique: std::collections::HashSet<&String> = mnemonics.iter().collect(); - assert_eq!(unique.len(), mnemonics.len(), "duplicate mnemonics generated"); + assert_eq!( + unique.len(), + mnemonics.len(), + "duplicate mnemonics generated" + ); // 64 × 24 = 1536 draws from the 2048-word list should hit ~1080 // distinct words; a low-entropy source concentrates on far fewer. diff --git a/core/archipelago/src/update.rs b/core/archipelago/src/update.rs index f76b90f3..72572d1e 100644 --- a/core/archipelago/src/update.rs +++ b/core/archipelago/src/update.rs @@ -1703,7 +1703,15 @@ pub async fn apply_update(data_dir: &Path) -> Result<()> { // Idle-priority IO — same reasoning as the frontend tarball. let extract = host_sudo(&[ - "ionice", "-c3", "nice", "-n10", "tar", "-xzf", &archive, "-C", &staging_new, + "ionice", + "-c3", + "nice", + "-n10", + "tar", + "-xzf", + &archive, + "-C", + &staging_new, ]) .await .with_context(|| format!("Failed to extract {}", name))?;