Browse Source

fix(p2p): do make announce blocking (reverts)

Signed-off-by: Ettore Di Giacinto <[email protected]>
Ettore Di Giacinto 1 year ago
parent
commit
e4cfa69e70
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/discovery/dht.go

+ 1 - 1
pkg/discovery/dht.go

@@ -123,7 +123,7 @@ func (d *DHT) Run(c log.StandardLogger, ctx context.Context, host host.Host) err
 		for {
 		for {
 			select {
 			select {
 			case <-t.C:
 			case <-t.C:
-				go connect()
+				connect()
 			case <-ctx.Done():
 			case <-ctx.Done():
 				return
 				return
 			}
 			}