forked from TrueCloudLab/frostfs-node
[#570] *: Use new Equal method of owner.ID type
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
49a42b1d3e
commit
70a7354e9d
4 changed files with 7 additions and 12 deletions
|
@ -115,9 +115,8 @@ func (v *FormatValidator) checkOwnerKey(id *owner.ID, key []byte) error {
|
|||
id2 := owner.NewID()
|
||||
id2.SetNeo3Wallet(wallet)
|
||||
|
||||
// FIXME: implement Equal method
|
||||
if s1, s2 := id.String(), id2.String(); s1 != s2 {
|
||||
return fmt.Errorf("(%T) different owner identifiers %s/%s", v, s1, s2)
|
||||
if !id.Equal(id2) {
|
||||
return fmt.Errorf("(%T) different owner identifiers %s/%s", v, id, id2)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue