swarm/network: lint fix

This commit is contained in:
Anton Evangelatov 2019-02-28 15:59:19 +01:00
parent 961302464d
commit 506c81eb5b

View file

@ -158,7 +158,7 @@ func (k *Kademlia) Register(peers ...*BzzAddr) error {
e := v.(*entry) e := v.(*entry)
// if underlay address is different, still add // if underlay address is different, still add
if bytes.Compare(e.BzzAddr.UAddr, p.UAddr) != 0 { if !bytes.Equal(e.BzzAddr.UAddr, p.UAddr) {
log.Trace("underlay addr is different, so add again", "new", p, "old", e.BzzAddr) log.Trace("underlay addr is different, so add again", "new", p, "old", e.BzzAddr)
// insert new offline peer into conns // insert new offline peer into conns
return newEntry(p) return newEntry(p)