Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

Commit

Permalink
remove removal that is not required
Browse files Browse the repository at this point in the history
  • Loading branch information
aarshkshah1992 authored and Stebalien committed Jul 17, 2021
1 parent 1907cca commit 739d9b7
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions pstoremem/addr_book.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,6 @@ func (mab *memoryAddrBook) SetAddrs(p peer.ID, addrs []ma.Multiaddr, ttl time.Du
delete(amap, key)
}
}

// if we've expired all the signed addresses for a peer, remove their signed routing state record
if len(amap) == 0 {
delete(s.signedPeerRecords, p)
}
}

// UpdateAddrs updates the addresses associated with the given peer that have
Expand Down Expand Up @@ -330,11 +325,6 @@ func (mab *memoryAddrBook) UpdateAddrs(p peer.ID, oldTTL time.Duration, newTTL t
}
}
}

// if we've expired all the signed addresses for a peer, remove their signed routing state record
if len(amap) == 0 {
delete(s.signedPeerRecords, p)
}
}

// Addrs returns all known (and valid) addresses for a given peer
Expand Down

0 comments on commit 739d9b7

Please sign in to comment.