From 6dddefe20c492008c092788820c32cd34e585aed Mon Sep 17 00:00:00 2001 From: Jeromy Date: Wed, 1 Jun 2016 10:02:26 -0700 Subject: [PATCH] improve comment on temp code --- p2p/net/swarm/swarm_dial.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/p2p/net/swarm/swarm_dial.go b/p2p/net/swarm/swarm_dial.go index 33b087ef..1100ca54 100644 --- a/p2p/net/swarm/swarm_dial.go +++ b/p2p/net/swarm/swarm_dial.go @@ -330,8 +330,14 @@ func (s *Swarm) dial(ctx context.Context, p peer.ID) (*Conn, error) { s.Filters.AddrBlocked) */ - ////// TEMP UNTIL PEERSTORE GETS UPGRADED - // Ref: https://github.com/ipfs/go-libp2p-peer/pull/1 + ////// + /* + This code is temporary, the peerstore can currently provide + a channel as an interface for receiving addresses, but more thought + needs to be put into the execution. For now, this allows us to use + the improved rate limiter, while maintaining the outward behaviour + that we previously had (halting a dial when we run out of addrs) + */ paddrs := s.peers.Addrs(p) good_addrs := addrutil.FilterAddrs(paddrs, addrutil.AddrUsableFunc,