Signed-off-by: Ettore Di Giacinto <[email protected]>
@@ -117,13 +117,13 @@ func (d *DHT) Run(c log.StandardLogger, ctx context.Context, host host.Host) err
}
go func() {
- connect()
+ go connect()
t := utils.NewBackoffTicker(utils.BackoffMaxInterval(d.RefreshDiscoveryTime))
defer t.Stop()
for {
select {
case <-t.C:
case <-ctx.Done():
return