Extend getFollows timeout
This commit is contained in:
parent
3880fdd61c
commit
e3dca47241
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue