forked from rosa/hakurei
internal/pkg: do not hold up cures during status link
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:
+2
-1
@@ -2120,6 +2120,8 @@ func (c *Cache) cure(a Artifact, curesExempt bool) (
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
err = ca.Cure(&f)
|
err = ca.Cure(&f)
|
||||||
|
c.exitCure(a, curesExempt)
|
||||||
|
|
||||||
if err == nil && f.status != nil {
|
if err == nil && f.status != nil {
|
||||||
statusS := c.base.Append(
|
statusS := c.base.Append(
|
||||||
dirStatus,
|
dirStatus,
|
||||||
@@ -2135,7 +2137,6 @@ func (c *Cache) cure(a Artifact, curesExempt bool) (
|
|||||||
f.statusSPath = statusS
|
f.statusSPath = statusS
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
c.exitCure(a, curesExempt)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if c.msg.IsVerbose() {
|
if c.msg.IsVerbose() {
|
||||||
c.msg.Verbosef("cure %s: %v", reportName(ca, id), err)
|
c.msg.Verbosef("cure %s: %v", reportName(ca, id), err)
|
||||||
|
|||||||
Reference in New Issue
Block a user