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
ad905b0a
Unverified
Commit
ad905b0a
authored
Mar 18, 2020
by
Aarsh Shah
Committed by
GitHub
Mar 18, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #180 from libp2p/fix/swarm-dial-err
fix: make sure to include peer in dial error
parents
da3b8ade
1a4d0d70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
swarm_dial.go
swarm_dial.go
+1
-1
No files found.
swarm_dial.go
View file @
ad905b0a
...
@@ -387,7 +387,7 @@ func (s *Swarm) dialAddrs(ctx context.Context, p peer.ID, remoteAddrs <-chan ma.
...
@@ -387,7 +387,7 @@ func (s *Swarm) dialAddrs(ctx context.Context, p peer.ID, remoteAddrs <-chan ma.
// use a single response type instead of errs and conns, reduces complexity *a ton*
// use a single response type instead of errs and conns, reduces complexity *a ton*
respch
:=
make
(
chan
dialResult
)
respch
:=
make
(
chan
dialResult
)
err
:=
new
(
DialError
)
err
:=
&
DialError
{
Peer
:
p
}
defer
s
.
limiter
.
clearAllPeerDials
(
p
)
defer
s
.
limiter
.
clearAllPeerDials
(
p
)
...
...
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