mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 16:33:36 +00:00
Remove AbortSignal.any calls
This commit is contained in:
5 files changed
+10
-10
No files matched your search
@@ -7,7 +7,7 @@ export function useComments(root: NostrEvent | URL, limit?: number) {
|
||||
|
||||
return useQuery({
|
||||
queryKey: ['nostr', 'comments', root instanceof URL ? root.toString() : root.id, limit],
|
||||
queryFn: async (c) => {
|
||||
queryFn: async () => {
|
||||
const filter: NostrFilter = { kinds: [1111] };
|
||||
|
||||
if (root instanceof URL) {
|
||||
@@ -26,7 +26,7 @@ export function useComments(root: NostrEvent | URL, limit?: number) {
|
||||
}
|
||||
|
||||
// Query for all kind 1111 comments that reference this addressable event regardless of depth
|
||||
const signal = AbortSignal.any([c.signal, AbortSignal.timeout(5000)]);
|
||||
const signal = AbortSignal.timeout(5000);
|
||||
const events = await nostr.query([filter], { signal });
|
||||
|
||||
// Helper function to get tag value
|
||||
|
||||
Reference in new issue
Block a user