mirror of
https://github.com/dergigi/boris.git
synced 2025-12-17 06:34:24 +01:00
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:
@@ -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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user