chore: small fixes

This commit is contained in:
2025-03-11 13:22:44 +07:00
parent b92d446184
commit 8156d9d046
4 changed files with 178 additions and 196 deletions

View File

@@ -221,8 +221,7 @@ impl Compose {
let metadata = client
.fetch_metadata(public_key, Duration::from_secs(2))
.await
.unwrap_or_default()
.await?
.unwrap_or_default();
Ok(NostrProfile::new(public_key, metadata))
@@ -237,8 +236,7 @@ impl Compose {
cx.background_spawn(async move {
let metadata = client
.fetch_metadata(public_key, Duration::from_secs(2))
.await
.unwrap_or_default()
.await?
.unwrap_or_default();
Ok(NostrProfile::new(public_key, metadata))