Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix panic for invalid cast #241

Merged
merged 1 commit into from
Nov 18, 2024
Merged

fix panic for invalid cast #241

merged 1 commit into from
Nov 18, 2024

Conversation

JssDWt
Copy link
Collaborator

@JssDWt JssDWt commented Nov 18, 2024

Fixes panic:

panic: interface conversion: interface {} is *common.InterceptResult, not common.InterceptResult
goroutine 836445 [running]:
github.com/breez/lspd/interceptor.(*Interceptor).Intercept(0xc000750ea0, {{0xc0018375c0, 0x40}, 0x10000000000, {0xc0023bd3a0, 0x20, 0x20}, 0x756873f, 0x7567e88, 0xd4a2e, ...})
        github.com/breez/lspd/interceptor/intercept_handler.go:311 +0x3ce
github.com/breez/lspd/common.(*CombinedHandler).Intercept(0xc001e43a40?, {{0xc0018375c0, 0x40}, 0x10000000000, {0xc0023bd3a0, 0x20, 0x20}, 0x756873f, 0x7567e88, 0xd4a2e, ...})
        github.com/breez/lspd/common/combined_handler.go:17 +0xd4
github.com/breez/lspd/cln.(*ClnHtlcInterceptor).intercept.func2()
        github.com/breez/lspd/cln/cln_interceptor.go:156 +0x2b9
created by github.com/breez/lspd/cln.(*ClnHtlcInterceptor).intercept in goroutine 133
        github.com/breez/lspd/cln/cln_interceptor.go:135 +0x3cb

@JssDWt JssDWt merged commit 942e64c into master Nov 18, 2024
6 checks passed
@JssDWt JssDWt deleted the jssdwt-fix-panic branch November 18, 2024 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants