satdress timeout (#349)

This commit is contained in:
calle 2022-05-02 23:50:23 +02:00 committed by GitHub
parent 1946a0e873
commit fce4fb9ecc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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