From 983d2f209d7baa643fadb45655579129b2351ca0 Mon Sep 17 00:00:00 2001 From: Awiteb Date: Mon, 9 Jun 2025 10:29:17 +0000 Subject: [PATCH] chore(NostrClient): Limit the events to 1 in fetch_event function Signed-off-by: Awiteb --- src/nostr_utils/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nostr_utils/mod.rs b/src/nostr_utils/mod.rs index e68af2e..d5cb47d 100644 --- a/src/nostr_utils/mod.rs +++ b/src/nostr_utils/mod.rs @@ -194,7 +194,7 @@ impl NostrClient { pub async fn fetch_event(&self, filter: Filter) -> N34Result> { Ok(self .client - .fetch_events(filter, CLIENT_TIMEOUT) + .fetch_events(filter.limit(1), CLIENT_TIMEOUT) .await? .first_owned()) }