bep40Priority: Include error in return

This commit is contained in:
Matt Joiner 2018-07-10 11:14:23 +10:00
parent ba9935d522
commit f149d0b82a
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ func bep40PriorityBytes(a, b ipPort) ([]byte, error) {
func bep40Priority(a, b ipPort) (peerPriority, error) {
bs, err := bep40PriorityBytes(a, b)
if err != nil {
return 0, nil
return 0, err
}
i := len(bs) / 2
_a, _b := bs[:i], bs[i:]