mudler пре 1 година
родитељ
комит
8da3dedee8
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      pkg/discovery/dht.go

+ 2 - 2
pkg/discovery/dht.go

@@ -116,13 +116,13 @@ func (d *DHT) Run(c log.StandardLogger, ctx context.Context, host host.Host) err
 	}
 	}
 
 
 	go func() {
 	go func() {
-		go connect()
+		connect()
 		t := utils.NewBackoffTicker(utils.BackoffMaxInterval(d.RefreshDiscoveryTime))
 		t := utils.NewBackoffTicker(utils.BackoffMaxInterval(d.RefreshDiscoveryTime))
 		defer t.Stop()
 		defer t.Stop()
 		for {
 		for {
 			select {
 			select {
 			case <-t.C:
 			case <-t.C:
-				go connect()
+				connect()
 			case <-ctx.Done():
 			case <-ctx.Done():
 				return
 				return
 			}
 			}