From e4cfa69e70111d0069c5fce9423e4fbf670a5dd9 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Tue, 20 Aug 2024 19:31:24 +0200 Subject: [PATCH] fix(p2p): do make announce blocking (reverts) Signed-off-by: Ettore Di Giacinto --- pkg/discovery/dht.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }