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