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
|
@ -23,11 +23,12 @@ func NewTransferTable() *TransferTable {
|
|||
}
|
||||
|
||||
func (t *TransferTable) Transfer(tx *TransferTx) {
|
||||
from, to := tx.From.String(), tx.To.String()
|
||||
if from == to {
|
||||
if tx.From.Equal(tx.To) {
|
||||
return
|
||||
}
|
||||
|
||||
from, to := tx.From.String(), tx.To.String()
|
||||
|
||||
m, ok := t.txs[from]
|
||||
if !ok {
|
||||
if m, ok = t.txs[to]; ok {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue