mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 06:21:40 +01:00
lnwire: return pointer to ErrUnknownAddrType to ensure type switch in peer.go catches it
Related to #979.
This commit is contained in:
parent
9dee2ce8f2
commit
8d71ed2f64
1 changed files with 1 additions and 1 deletions
|
@ -677,7 +677,7 @@ func readElement(r io.Reader, element interface{}) error {
|
|||
continue
|
||||
|
||||
default:
|
||||
return ErrUnknownAddrType{aType}
|
||||
return &ErrUnknownAddrType{aType}
|
||||
}
|
||||
|
||||
addresses = append(addresses, address)
|
||||
|
|
Loading…
Add table
Reference in a new issue