mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
queries: reduce getFollows timeout to 1s
This commit is contained in:
parent
c516f007a5
commit
054a399f23
1 changed files with 2 additions and 2 deletions
|
|
@ -18,8 +18,8 @@ const getAuthor = async (pubkey: string, timeout = 1000): Promise<Event<0> | und
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Get users the given pubkey follows. */
|
/** Get users the given pubkey follows. */
|
||||||
const getFollows = async (pubkey: string): Promise<Event<3> | undefined> => {
|
const getFollows = async (pubkey: string, timeout = 1000): Promise<Event<3> | undefined> => {
|
||||||
const [event] = await getFiltersMixer([{ authors: [pubkey], kinds: [3] }], { timeout: 5000 });
|
const [event] = await getFiltersMixer([{ authors: [pubkey], kinds: [3] }], { timeout });
|
||||||
return event;
|
return event;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue