Locator fix

This commit is contained in:
Adam Ierymenko 2019-09-30 20:09:35 -07:00
parent 6db2b8c66d
commit 9b8d191bb1
No known key found for this signature in database
GPG Key ID: C8877CF2D7A5D7F3

View File

@ -147,6 +147,7 @@ func NewLocatorFromBytes(b []byte) (*Locator, error) {
loc.Virtual = append(loc.Virtual, id)
}
}
loc.Bytes = b
return &loc, nil
}
@ -185,9 +186,6 @@ func (l *Locator) UnmarshalJSON(j []byte) error {
if err != nil {
return err
}
l.Identity = tmp.Identity
l.Physical = tmp.Physical
l.Virtual = tmp.Virtual
l.Bytes = bytes.Bytes
*l = *tmp
return nil
}