From c674e18229b114bc475f30b6508b2a36334b0121 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 31 Aug 2022 18:34:20 -0400 Subject: [PATCH] *add queryTimeout --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index d29a570..4e9f605 100644 --- a/src/index.ts +++ b/src/index.ts @@ -159,7 +159,7 @@ async function fetchFromRelays( hash, path, }, - { relayTimeout: 30 } + { queryTimeout: 30, relayTimeout: 30 } ); } else { query = network.simpleQuery( @@ -170,7 +170,7 @@ async function fetchFromRelays( hash, path, }, - { relayTimeout: 30 } + { queryTimeout: 30, relayTimeout: 30 } ); } let resp = await query.result;