From 3a2096345dbf78cd3d2f2b15d418f14a0b8335c3 Mon Sep 17 00:00:00 2001 From: Peter Rounce Date: Sat, 8 Jun 2024 10:05:50 +0100 Subject: [PATCH] fix formatting --- lnd/lnd.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lnd/lnd.go b/lnd/lnd.go index 4982453..f86548c 100644 --- a/lnd/lnd.go +++ b/lnd/lnd.go @@ -139,7 +139,7 @@ func Monitor_invoice_state(r_hash []byte) { i_client := invoicesrpc.NewInvoicesClient(connection) - ctx, cancel := context.WithTimeout(context.Background(), time.Duration(ln_invoice_expiry) * time.Second) + ctx, cancel := context.WithTimeout(context.Background(), time.Duration(ln_invoice_expiry)*time.Second) defer cancel() stream, err := i_client.SubscribeSingleInvoice(ctx, &invoicesrpc.SubscribeSingleInvoiceRequest{ @@ -242,7 +242,7 @@ func PayInvoice(card_payment_id int, invoice string) { fee_limit_product := int64((fee_limit_percent / 100) * (float64(invoice_msats) / 1000)) - ctx, cancel := context.WithTimeout(context.Background(), time.Duration(invoice_expiry) * time.Second) + ctx, cancel := context.WithTimeout(context.Background(), time.Duration(invoice_expiry)*time.Second) defer cancel() stream, err := r_client.SendPaymentV2(ctx, &routerrpc.SendPaymentRequest{