style: cargo fmt

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
archipelago
2026-08-10 11:56:32 -04:00
co-authored by Claude Fable 5
parent 7f258b508e
commit c9a70f9d2e
+4 -9
View File
@@ -91,9 +91,7 @@ impl RpcHandler {
// plain off/on toggle doesn't forget it); present-but-empty clears it.
let prior = load_discovery_state(&self.config.data_dir).await;
let name = match params.get("name") {
Some(v) => v
.as_str()
.and_then(nostr_handshake::clean_display_name),
Some(v) => v.as_str().and_then(nostr_handshake::clean_display_name),
None => prior.name,
};
@@ -137,12 +135,9 @@ impl RpcHandler {
let relays = self.handshake_relays().await;
let tor_proxy = self.config.nostr_tor_proxy.clone();
tokio::spawn(async move {
if let Err(e) = nostr_handshake::publish_tombstone(
&identity_dir,
&relays,
tor_proxy.as_deref(),
)
.await
if let Err(e) =
nostr_handshake::publish_tombstone(&identity_dir, &relays, tor_proxy.as_deref())
.await
{
tracing::warn!("Presence tombstone publish failed: {}", e);
}