internal/pkg: do not hold up cures during status link
Test / Create distribution (push) Successful in 57s
Test / Sandbox (push) Successful in 2m48s
Test / ShareFS (push) Successful in 3m56s
Test / Hakurei (push) Successful in 4m4s
Test / Sandbox (race detector) (push) Successful in 5m40s
Test / Hakurei (race detector) (push) Successful in 6m37s
Test / Flake checks (push) Successful in 1m8s

This is a bunch of string operation and a single syscall. Do not hold up queue here.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-06-07 02:28:45 +09:00
parent e192fca762
commit 9aaf160ff4
+2 -1
View File
@@ -2120,6 +2120,8 @@ func (c *Cache) cure(a Artifact, curesExempt bool) (
return
}
err = ca.Cure(&f)
c.exitCure(a, curesExempt)
if err == nil && f.status != nil {
statusS := c.base.Append(
dirStatus,
@@ -2135,7 +2137,6 @@ func (c *Cache) cure(a Artifact, curesExempt bool) (
f.statusSPath = statusS
}
}
c.exitCure(a, curesExempt)
if err != nil {
if c.msg.IsVerbose() {
c.msg.Verbosef("cure %s: %v", reportName(ca, id), err)