refactor: 🏗️
This commit is contained in:
parent
49933ee4a2
commit
08995d957c
7 changed files with 28 additions and 32 deletions
|
|
@ -422,7 +422,11 @@ class ClientService extends EventTarget {
|
|||
async fetchRelayList(pubkey: string): Promise<TRelayList> {
|
||||
const event = await this.relayListEventDataLoader.load(pubkey)
|
||||
if (!event) {
|
||||
return { write: BIG_RELAY_URLS, read: BIG_RELAY_URLS }
|
||||
return {
|
||||
write: BIG_RELAY_URLS,
|
||||
read: BIG_RELAY_URLS,
|
||||
originalRelays: []
|
||||
}
|
||||
}
|
||||
return getRelayListFromRelayListEvent(event)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue