queries: reduce getFollows timeout to 1s

This commit is contained in:
Alex Gleason 2023-08-17 13:19:36 -05:00
parent c516f007a5
commit 054a399f23
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 2 additions and 2 deletions

View File

@ -18,8 +18,8 @@ const getAuthor = async (pubkey: string, timeout = 1000): Promise<Event<0> | und
};
/** Get users the given pubkey follows. */
const getFollows = async (pubkey: string): Promise<Event<3> | undefined> => {
const [event] = await getFiltersMixer([{ authors: [pubkey], kinds: [3] }], { timeout: 5000 });
const getFollows = async (pubkey: string, timeout = 1000): Promise<Event<3> | undefined> => {
const [event] = await getFiltersMixer([{ authors: [pubkey], kinds: [3] }], { timeout });
return event;
};