fix: useFollowers

This commit is contained in:
Shusui MOYATANI
2024-02-04 12:11:44 +09:00
parent 37f6ee2906
commit b4fb0ebae3
2 changed files with 2 additions and 2 deletions

View File

@@ -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,
}));

View File

@@ -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 });