diff --git a/src/queries.ts b/src/queries.ts index 633f9ee..2012c18 100644 --- a/src/queries.ts +++ b/src/queries.ts @@ -18,8 +18,8 @@ const getAuthor = async (pubkey: string, timeout = 1000): Promise | und }; /** Get users the given pubkey follows. */ -const getFollows = async (pubkey: string): Promise | undefined> => { - const [event] = await getFiltersMixer([{ authors: [pubkey], kinds: [3] }], { timeout: 5000 }); +const getFollows = async (pubkey: string, timeout = 1000): Promise | undefined> => { + const [event] = await getFiltersMixer([{ authors: [pubkey], kinds: [3] }], { timeout }); return event; };