channledb/addr: remove silent encoding failure for unknown types

This commit is contained in:
Conner Fromknecht 2018-06-27 17:26:17 -07:00
parent c6c442f6b6
commit 4cb7953f66
No known key found for this signature in database
GPG Key ID: 39DE78FBE6ACB0EF

@ -192,7 +192,7 @@ func serializeAddr(w io.Writer, address net.Addr) error {
return encodeTCPAddr(w, addr)
case *tor.OnionAddr:
return encodeOnionAddr(w, addr)
default:
return ErrUnknownAddressType
}
return nil
}