fix(sora): 恢复流式辅助逻辑并通过 lint

This commit is contained in:
yangjianbo
2026-02-04 14:06:06 +08:00
parent 377bffe281
commit 9b120e68b8
4 changed files with 546 additions and 535 deletions

View File

@@ -29,7 +29,6 @@ type SoraMediaStorage struct {
root string
imageRoot string
videoRoot string
maxConcurrent int
downloadTimeout time.Duration
maxDownloadBytes int64
fallbackToUpstream bool
@@ -93,7 +92,6 @@ func (s *SoraMediaStorage) refreshConfig() {
if maxConcurrent <= 0 {
maxConcurrent = 4
}
s.maxConcurrent = maxConcurrent
timeoutSeconds := s.cfg.Sora.Storage.DownloadTimeoutSeconds
if timeoutSeconds <= 0 {
timeoutSeconds = 120