chore: go fixes
This commit is contained in:
@@ -156,13 +156,11 @@ func (w *Worker) syncRelations(ctx context.Context) {
|
|||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
|
|
||||||
for range workerCount {
|
for range workerCount {
|
||||||
wg.Add(1)
|
wg.Go(func() {
|
||||||
go func() {
|
|
||||||
defer wg.Done()
|
|
||||||
for a := range jobs {
|
for a := range jobs {
|
||||||
w.syncSingleAnime(ctx, a.ID)
|
w.syncSingleAnime(ctx, a.ID)
|
||||||
}
|
}
|
||||||
}()
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, a := range animes {
|
for _, a := range animes {
|
||||||
|
|||||||
Reference in New Issue
Block a user