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
dms3
go-dms3-routing
Commits
fed010e3
Commit
fed010e3
authored
Feb 06, 2015
by
Brian Tiger Chow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log(routing) report boostrap result to user
parent
3fe1c707
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
supernode/proxy/standard.go
supernode/proxy/standard.go
+8
-1
No files found.
supernode/proxy/standard.go
View file @
fed010e3
...
...
@@ -34,10 +34,17 @@ func Standard(h host.Host, remotes []peer.PeerInfo) Proxy {
}
func
(
px
*
standard
)
Bootstrap
(
ctx
context
.
Context
)
error
{
var
cxns
[]
peer
.
PeerInfo
for
_
,
info
:=
range
px
.
Remotes
{
if
err
:=
px
.
Host
.
Connect
(
ctx
,
info
);
err
!=
nil
{
return
err
// TODO
continue
}
cxns
=
append
(
cxns
,
info
)
}
if
len
(
cxns
)
==
0
{
log
.
Critical
(
"unable to bootstrap to any supernode routers"
)
}
else
{
log
.
Info
(
"bootstrapped to %d supernode routers: %s"
,
len
(
cxns
),
cxns
)
}
return
nil
}
...
...
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