Commit fed010e3 authored by Brian Tiger Chow's avatar Brian Tiger Chow

log(routing) report boostrap result to user

parent 3fe1c707
......@@ -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
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment