From e3dca47241b18db4460617aaed66d01edf1eb6f7 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 3 May 2023 21:53:36 -0500 Subject: [PATCH] Extend getFollows timeout --- src/client.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/client.ts b/src/client.ts index ba19f44..be81aa4 100644 --- a/src/client.ts +++ b/src/client.ts @@ -77,9 +77,8 @@ const getAuthor = async (pubkey: string): Promise | undefined> => /** Get users the given pubkey follows. */ const getFollows = async (pubkey: string): Promise | undefined> => { - const filter: Filter = { authors: [pubkey], kinds: [3] }; - const [event] = await getFilter(filter, { timeout: 1000 }); - return event as SignedEvent<3> | undefined; + const [event] = await getFilter({ authors: [pubkey], kinds: [3] }, { timeout: 5000 }); + return event; }; interface PaginationParams {