diff --git a/pkg/discovery/dht.go b/pkg/discovery/dht.go index f81e4244..e359d947 100644 --- a/pkg/discovery/dht.go +++ b/pkg/discovery/dht.go @@ -123,7 +123,7 @@ func (d *DHT) Run(c log.StandardLogger, ctx context.Context, host host.Host) err for { select { case <-t.C: - go connect() + connect() case <-ctx.Done(): return }