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 connect()
+		connect()
 		t := utils.NewBackoffTicker(utils.BackoffMaxInterval(d.RefreshDiscoveryTime))
 		defer t.Stop()
 		for {
 			select {
 			case <-t.C:
-				go connect()
+				connect()
 			case <-ctx.Done():
 				return
 			}