From 334b05c6e094cab4230b391fd2f3063d8a7498c3 Mon Sep 17 00:00:00 2001 From: mkelvers Date: Fri, 8 May 2026 09:28:30 +0200 Subject: [PATCH] chore: go fixes --- internal/worker/relations.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/internal/worker/relations.go b/internal/worker/relations.go index 3165cbd..8a096d9 100644 --- a/internal/worker/relations.go +++ b/internal/worker/relations.go @@ -156,13 +156,11 @@ func (w *Worker) syncRelations(ctx context.Context) { var wg sync.WaitGroup for range workerCount { - wg.Add(1) - go func() { - defer wg.Done() + wg.Go(func() { for a := range jobs { w.syncSingleAnime(ctx, a.ID) } - }() + }) } for _, a := range animes {