perf: increase remote relay timeout for profile fetches

Increase timeout from 6s to 10s to give slow relays (including purplepag.es)
more time to respond with profile metadata. This may help find profiles that
were timing out before.
This commit is contained in:
Gigi
2025-11-02 21:43:00 +01:00
parent 7ec2ddcceb
commit 6b221e4d13

View File

@@ -282,7 +282,7 @@ export const fetchProfiles = async (
onlyEvents(),
tap((event: NostrEvent) => processEvent(event)),
completeOnEose(),
takeUntil(timer(6000))
takeUntil(timer(10000)) // Increased from 6000ms to 10000ms to give slow relays more time
)
: new Observable<NostrEvent>((sub) => sub.complete())