feat(转换能力): 无损提速离线转换
build.yaml / build (push) Successful in 50s

This commit is contained in:
xiaoqidun committed 2026-10-15 15:48:36 +08:00
1 parent 7f6282fd94
commit 43d0713488
2 files changed
+15

No files matched your search

+6
View File
@@ -132,6 +132,7 @@ type outputContext struct {
cancel context.CancelFunc
checkpoint func() error
checked time.Time
pending uint8
}
// Write 将数据块交给浏览器保存
@@ -5490,6 +5491,11 @@ func (c *outputContext) Err() error {
if err := c.Context.Err(); err != nil {
return err
}
if c.pending != 0 {
c.pending--
return nil
}
c.pending = 15
if time.Since(c.checked) >= 50*time.Millisecond {
c.checked = time.Now()
if err := c.checkpoint(); err != nil {