mirror of
https://github.com/dergigi/boris.git
synced 2025-12-17 06:34:24 +01:00
- Add fetchFirstEvent helper that resolves on first event (not waiting for complete) - Add fetchAuthorProfile helper for DRY author fetching - Refactor fetchArticleMetadataViaRelays to: - Return immediately when first article event arrives (no 7s wait) - Fetch author profile with 400ms micro-wait (connections already warm) - Optional hedge: try again with 600ms if first attempt fails - Fallback to pubkey prefix if profile not found - Add logging to track article fetch and author resolution source This dramatically improves first-request latency by returning as soon as any relay responds, while still attempting to get author name with minimal additional delay (400-600ms total).