From fce4fb9ecc034dc4e5fb80582e6833723b30dfbe Mon Sep 17 00:00:00 2001 From: calle <93376500+callebtc@users.noreply.github.com> Date: Mon, 2 May 2022 23:50:23 +0200 Subject: [PATCH] satdress timeout (#349) --- internal/telegram/satdress.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/telegram/satdress.go b/internal/telegram/satdress.go index 4a72f9e..c505476 100644 --- a/internal/telegram/satdress.go +++ b/internal/telegram/satdress.go @@ -331,7 +331,7 @@ func (bot *TipBot) satdressCheckInvoiceHandler(ctx intercept.Context) (intercept // save it in the cache for another call later bot.Cache.Set(fmt.Sprintf("invoice:msg:%s", getInvoiceParams.Hash), check_message, &store.Options{Expiration: 24 * time.Hour}) - deadLineCtx, cancel := context.WithDeadline(ctx, time.Now().Add(time.Second*30)) + deadLineCtx, cancel := context.WithDeadline(ctx, time.Now().Add(time.Second*60)) runtime.NewRetryTicker(deadLineCtx, "node_invoice_check", runtime.WithRetryDuration(5*time.Second)).Do(func() { // get invoice from user's node log.Debugf("[satdressCheckInvoiceHandler] Checking invoice: %s", getInvoiceParams.Hash)