Extend getFollows timeout

This commit is contained in:
Alex Gleason 2023-05-03 21:53:36 -05:00
parent 3880fdd61c
commit e3dca47241
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 2 additions and 3 deletions

View File

@ -77,9 +77,8 @@ const getAuthor = async (pubkey: string): Promise<SignedEvent<0> | undefined> =>
/** Get users the given pubkey follows. */ /** Get users the given pubkey follows. */
const getFollows = async (pubkey: string): Promise<SignedEvent<3> | undefined> => { const getFollows = async (pubkey: string): Promise<SignedEvent<3> | undefined> => {
const filter: Filter = { authors: [pubkey], kinds: [3] }; const [event] = await getFilter({ authors: [pubkey], kinds: [3] }, { timeout: 5000 });
const [event] = await getFilter(filter, { timeout: 1000 }); return event;
return event as SignedEvent<3> | undefined;
}; };
interface PaginationParams { interface PaginationParams {