From b4fb0ebae38a0db5b252406cda68737196ee95c3 Mon Sep 17 00:00:00 2001 From: Shusui MOYATANI Date: Sun, 4 Feb 2024 12:11:44 +0900 Subject: [PATCH] fix: useFollowers --- src/nostr/useFollowers.ts | 1 + src/nostr/useSubscription.ts | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nostr/useFollowers.ts b/src/nostr/useFollowers.ts index 9ea00b3..39d8326 100644 --- a/src/nostr/useFollowers.ts +++ b/src/nostr/useFollowers.ts @@ -18,6 +18,7 @@ export default function useFollowers(propsProvider: () => UseFollowersProps) { relayUrls: config().relayUrls, filters: [{ kinds: [Kind.Contacts], '#p': [props().pubkey] }], limit: 1000000, + eoseLimit: 1000000, continuous: false, })); diff --git a/src/nostr/useSubscription.ts b/src/nostr/useSubscription.ts index 5372f4a..62985fa 100644 --- a/src/nostr/useSubscription.ts +++ b/src/nostr/useSubscription.ts @@ -120,8 +120,7 @@ const useSubscription = (propsProvider: () => UseSubscriptionProps | null) => { relayUrls, filters, options ?? { - eoseTimeout: 12000, - maxWait: 6000, + maxWait: 12000, onevent: (event: NostrEvent) => { if (onEvent != null) { onEvent(event as NostrEvent & { id: string });