From d067b2c2d2bc85e83d007161e3abb4958d97fe23 Mon Sep 17 00:00:00 2001 From: kiwiidb <33457577+kiwiidb@users.noreply.github.com> Date: Sat, 26 Feb 2022 13:28:07 +0100 Subject: [PATCH] use a super high timeout --- lnd/c-lightning.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lnd/c-lightning.go b/lnd/c-lightning.go index d69d58b..f63c111 100644 --- a/lnd/c-lightning.go +++ b/lnd/c-lightning.go @@ -4,6 +4,7 @@ import ( "context" "fmt" "reflect" + "time" cln "github.com/fiatjaf/lightningd-gjson-rpc" "github.com/gofrs/uuid" @@ -37,7 +38,7 @@ func NewCLNClient(options CLNClientOptions) (*CLNClient, error) { handler: handler, client: &cln.Client{ PaymentHandler: handler.Handle, - //CallTimeout: 0, + CallTimeout: 24 * 3600 * time.Second, //should be infinite actually //Path: "", //LightningDir: "", SparkURL: options.SparkUrl,