fix: race condition in worker waitgroup

This commit is contained in:
2026-05-06 23:18:32 +02:00
parent d7db3d6d1c
commit 7512aac53e

View File

@@ -156,8 +156,8 @@ func (w *Worker) syncRelations(ctx context.Context) {
var wg sync.WaitGroup
for range workerCount {
go func() {
wg.Add(1)
go func() {
defer wg.Done()
for a := range jobs {
w.syncSingleAnime(ctx, a.ID)