From 942e64c594dcade7bb90d0c87623a2f5074aa2bb Mon Sep 17 00:00:00 2001 From: Jesse de Wit Date: Mon, 18 Nov 2024 14:37:47 +0100 Subject: [PATCH] fix panic for invalid cast --- interceptor/intercept_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interceptor/intercept_handler.go b/interceptor/intercept_handler.go index 2241e5a4..d7dd4522 100644 --- a/interceptor/intercept_handler.go +++ b/interceptor/intercept_handler.go @@ -116,7 +116,7 @@ func (i *Interceptor) Intercept(req common.InterceptRequest) common.InterceptRes isConnected, err := i.client.IsConnected(nextHop) if err != nil { log.Printf("IsConnected(%x) error: %v", nextHop, err) - return &common.InterceptResult{ + return common.InterceptResult{ Action: common.INTERCEPT_FAIL_HTLC_WITH_CODE, FailureCode: common.FAILURE_TEMPORARY_CHANNEL_FAILURE, }, nil