Skip to content
Snippets Groups Projects
Commit 6509b9c8 authored by achirikova's avatar achirikova
Browse files

patch to stop bootstrapping

parent cd7cfb0f
No related branches found
No related tags found
1 merge request!1New
......@@ -21,12 +21,10 @@ type discoveryHandler struct {
}
func (dh *discoveryHandler) HandlePeerFound(p peer.AddrInfo) {
log.Info("connecting to discovered peer: ", p)
ctx, cancel := context.WithTimeout(dh.ctx, discoveryConnTimeout)
log.Info("connecting to discovered peerbebeb: ", p)
_, cancel := context.WithTimeout(dh.ctx, discoveryConnTimeout)
defer cancel()
if err := dh.host.Connect(ctx, p); err != nil {
log.Warnf("failed to connect to peer %s found by discovery: %s", p.ID, err)
}
}
func DiscoveryHandler(mctx helpers.MetricsCtx, lc fx.Lifecycle, host host.Host) *discoveryHandler {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment