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
@ -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…
Reference in New Issue
Block a user