Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
e6b1e07f
Commit
e6b1e07f
authored
6 years ago
by
Can ZHANG
Browse files
Options
Download
Email Patches
Plain Diff
Updates due to code review
parent
ef51fdbe
master
2018-Q4-OKR
fix/473
fix/no-custom-field
punching
v6.0.23
v6.0.22
v6.0.21
v6.0.20
v6.0.19
v6.0.18
v6.0.17
v6.0.16
v6.0.15
v6.0.14
v6.0.13
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
p2p/host/basic/basic_host.go
+3
-2
p2p/host/basic/basic_host.go
with
3 additions
and
2 deletions
+3
-2
p2p/host/basic/basic_host.go
View file @
e6b1e07f
...
...
@@ -474,10 +474,11 @@ func mergeAddrs(addrLists ...[]ma.Multiaddr) (uniqueAddrs []ma.Multiaddr) {
exists
:=
make
(
map
[
string
]
bool
)
for
_
,
addrList
:=
range
addrLists
{
for
_
,
addr
:=
range
addrList
{
if
exists
[
addr
.
String
()]
{
k
:=
string
(
addr
.
Bytes
())
if
exists
[
k
]
{
continue
}
exists
[
addr
.
String
()
]
=
true
exists
[
k
]
=
true
uniqueAddrs
=
append
(
uniqueAddrs
,
addr
)
}
}
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help