mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-06-02 06:00:45 +08:00
Update core/tasks/batchimport/execute.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -48,7 +48,9 @@ func (t *Task) Execute(ctx context.Context) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
t.processingMu.Lock()
|
||||||
t.failed[elem.ID] = err
|
t.failed[elem.ID] = err
|
||||||
|
t.processingMu.Unlock()
|
||||||
logger.Errorf("Failed to process file %s: %v", elem.FileInfo.Name, err)
|
logger.Errorf("Failed to process file %s: %v", elem.FileInfo.Name, err)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user