From ae5fbd94fc1d52de21375656a1d4c97ab856b26a Mon Sep 17 00:00:00 2001 From: Branden J Brown Date: Wed, 25 Nov 2026 14:29:22 -0500 Subject: [PATCH] horsebot: restrict goroutine count when saving images --- cmd/horsebot/toradl.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/horsebot/toradl.go b/cmd/horsebot/toradl.go index fceee31..19fc144 100644 --- a/cmd/horsebot/toradl.go +++ b/cmd/horsebot/toradl.go @@ -39,6 +39,7 @@ func saveImgs(ctx context.Context, db *sqlitex.Pool, out string) { } g, ctx := errgroup.WithContext(ctx) + g.SetLimit(2) tick := time.NewTicker(250 * time.Millisecond) idouts(ctx, g, tick, skill, filepath.Join(out, "skill"), "https://media.gametora.com/umamusume/skills/icon/%d.png", image.Pt(64, 64), image.Pt(32, 32), image.Pt(16, 16)) idouts(ctx, g, tick, chara, filepath.Join(out, "chara"), "https://gametora.com/images/umamusume/characters/icons/chr_icon_%d.png", image.Pt(256, 256), image.Pt(64, 64), image.Pt(32, 32), image.Pt(16, 16))