mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
swarm/network: lint fix
This commit is contained in:
parent
961302464d
commit
506c81eb5b
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ func (k *Kademlia) Register(peers ...*BzzAddr) error {
|
|||
e := v.(*entry)
|
||||
|
||||
// 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)
|
||||
// insert new offline peer into conns
|
||||
return newEntry(p)
|
||||
|
|
|
|||
Loading…
Reference in a new issue