Skip to content

Commit

Permalink
fix panic for invalid cast
Browse files Browse the repository at this point in the history
  • Loading branch information
JssDWt committed Nov 18, 2024
1 parent ff1ce12 commit 942e64c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interceptor/intercept_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 942e64c

Please sign in to comment.