From 67e008e8c7fd0f17c4204651112f1d9cf014262b Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Tue, 12 May 2026 17:54:12 -0300 Subject: [PATCH] sdk: fix wot race. --- sdk/wot.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sdk/wot.go b/sdk/wot.go index 666f938..cfbe4e7 100644 --- a/sdk/wot.go +++ b/sdk/wot.go @@ -92,7 +92,7 @@ func (sys *System) loadWoT(ctx context.Context, pubkey nostr.PubKey) chan nostr. res := make(chan nostr.PubKey) - go func() { + g.Go(func() error { for _, f := range sys.FetchFollowList(ctx, pubkey).Items { g.Go(func() error { res <- f.Pubkey @@ -107,7 +107,9 @@ func (sys *System) loadWoT(ctx context.Context, pubkey nostr.PubKey) chan nostr. return nil }) } - }() + + return nil + }) go func() { g.Wait()