mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
lnwire: fix writeElement [][20]byte bug
Passing the [20]byte as a *[20]byte results in a type switch error as there isn’t a case for that type within writeElement.
This commit is contained in:
parent
4d763e07f7
commit
83b11c5efe
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ func writeElement(w io.Writer, element interface{}) error {
|
|||
|
||||
// Then write each out sequentially.
|
||||
for _, element := range e {
|
||||
if err := writeElement(w, &element); err != nil {
|
||||
if err := writeElement(w, element); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue