feat: add big relays when fetching note stats
This commit is contained in:
parent
b356115c9b
commit
5afbdd0aa4
1 changed files with 2 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import { BIG_RELAY_URLS } from '@/constants'
|
||||
import { getZapInfoFromEvent } from '@/lib/event-metadata'
|
||||
import { getEmojiInfosFromEmojiTags, tagNameEquals } from '@/lib/tag'
|
||||
import client from '@/services/client.service'
|
||||
|
|
@ -79,7 +80,7 @@ class NoteStatsService {
|
|||
})
|
||||
}
|
||||
const events: Event[] = []
|
||||
await client.fetchEvents(relayList.read.slice(0, 5), filters, {
|
||||
await client.fetchEvents(relayList.read.concat(BIG_RELAY_URLS).slice(0, 5), filters, {
|
||||
onevent: (evt) => {
|
||||
this.updateNoteStatsByEvents([evt])
|
||||
events.push(evt)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue