lnwire: return pointer to ErrUnknownAddrType to ensure type switch in peer.go catches it
Related to #979.
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -677,7 +677,7 @@ func readElement(r io.Reader, element interface{}) error {
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return ErrUnknownAddrType{aType}
|
return &ErrUnknownAddrType{aType}
|
||||||
}
|
}
|
||||||
|
|
||||||
addresses = append(addresses, address)
|
addresses = append(addresses, address)
|
||||||
|
|||||||
Reference in new issue
Block a user