Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(plugin): do not panic at the EOF error
Currently we panic when the io reader when it is returned an error. We should accept a io.EOF error, so this patch is fixing the following crash running 2 tests panic: EOF goroutine 1 [running]: github.com/vincenzopalazzo/cln4go/plugin.(*Plugin[...]).Start(0x575a60) /home/vincent/github/work/ocean/cln-offers/vendor/github.com/vincenzopalazzo/cln4go/plugin/plugin.go:200 +0x696 main.main() /home/vincent/github/work/ocean/cln-offers/cmd/plugin.go:17 +0x291 Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
- Loading branch information