From 9f5e49b64e3f5b5546b4d55bdaa38c99f90020a0 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Sat, 4 Sep 2021 15:03:19 -0400 Subject: [PATCH] Longer timeouts --- services/gunDB/contact-api/actions.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/gunDB/contact-api/actions.js b/services/gunDB/contact-api/actions.js index 3e0f58a9..f8800962 100644 --- a/services/gunDB/contact-api/actions.js +++ b/services/gunDB/contact-api/actions.js @@ -391,8 +391,8 @@ const sendSpontaneousPayment = async ( /** @type {import('shock-common').Schema.OrderResponse} */ const encryptedOrderRes = await Common.makePromise((res, rej) => { setTimeout(() => { - rej(new Error('Timeout of 20s passed when awaiting order response.')) - }, 20000) + rej(new Error('Timeout of 30s passed when awaiting order response.')) + }, 30000) require('../Mediator') .getGun() @@ -484,10 +484,10 @@ const sendSpontaneousPayment = async ( setTimeout(() => { rej( new Error( - "Timeout of 20s exceeded when waiting for order response's ack." + "Timeout of 30s exceeded when waiting for order response's ack." ) ) - }, 20000) + }, 30000) require('../Mediator') .getGun()