Skip to content
GitLab
Menu
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
4be7ada3
Commit
4be7ada3
authored
Oct 24, 2018
by
vyzo
Browse files
tag relay connections
parent
e96605d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
p2p/host/relay/autorelay.go
View file @
4be7ada3
...
...
@@ -157,6 +157,9 @@ func (h *AutoRelayHost) findRelays(ctx context.Context) {
h
.
relays
[
pi
.
ID
]
=
pi
h
.
mx
.
Unlock
()
// tag the connection as very important
h
.
ConnManager
()
.
TagPeer
(
pi
.
ID
,
"relay"
,
42
)
update
++
need
--
if
need
==
0
{
...
...
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