Skip to content

Commit

Permalink
refactor: remove comment as it is correct
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias committed May 17, 2023
1 parent b4d96f5 commit 8d4f6b3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions core/bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,13 +327,6 @@ func peersConnect(ctx context.Context, ph host.Host, availablePeers []peer.AddrI
if permanent {
// We're connecting to an original bootstrap peer, mark it as
// a permanent address (Connect will register it as TempAddrTTL).
// FIXME(BLOCKING): From the code it seems this will overwrite the
// temporary TTL from Connect: need confirmation from libp2p folks.
// Registering it *after* the connect give less chances of registering
// many addresses we won't be using in case we already reached the
// target and the context has already been cancelled. (This applies
// only to the very restricted list of original bootstrap nodes so
// this issue is not critical.)
ph.Peerstore().AddAddrs(p.ID, p.Addrs, peerstore.PermanentAddrTTL)
}

Expand Down

0 comments on commit 8d4f6b3

Please sign in to comment.