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:
1 file changed
+1
-1
+1
-1
@@ -178,7 +178,7 @@ func writeElement(w io.Writer, element interface{}) error {
|
|||||||
|
|
||||||
// Then write each out sequentially.
|
// Then write each out sequentially.
|
||||||
for _, element := range e {
|
for _, element := range e {
|
||||||
if err := writeElement(w, &element); err != nil {
|
if err := writeElement(w, element); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user