Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-swarm
Commits
422700f4
Commit
422700f4
authored
Jun 01, 2016
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve comment on temp code
parent
dfa2a299
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
swarm_dial.go
swarm_dial.go
+8
-2
No files found.
swarm_dial.go
View file @
422700f4
...
@@ -330,8 +330,14 @@ func (s *Swarm) dial(ctx context.Context, p peer.ID) (*Conn, error) {
...
@@ -330,8 +330,14 @@ func (s *Swarm) dial(ctx context.Context, p peer.ID) (*Conn, error) {
s.Filters.AddrBlocked)
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
)
paddrs
:=
s
.
peers
.
Addrs
(
p
)
good_addrs
:=
addrutil
.
FilterAddrs
(
paddrs
,
good_addrs
:=
addrutil
.
FilterAddrs
(
paddrs
,
addrutil
.
AddrUsableFunc
,
addrutil
.
AddrUsableFunc
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment