refactor(cleaner): 移除未使用的存储删除接口

清理任务时不再调用 Storage.DeleteByTask 方法,因为当前 OSS 服务暂未提供删除接口。
从 StorageService 接口和 ossStorage 实现中移除 DeleteByTask 方法,并更新清理逻辑。
This commit is contained in:
2026-04-23 15:02:24 +08:00
parent 9de47fa5b8
commit 23b83cae39
3 changed files with 1 additions and 11 deletions

View File

@@ -68,13 +68,6 @@ func (s *ossStorage) UploadByTask(ctx context.Context, _ *entity.AsynchTask, dat
return resp.FileURL, nil
}
func (s *ossStorage) DeleteByTask(ctx context.Context, t *entity.AsynchTask) error {
// 你说当前 oss 暂时没有删除接口:这里保留方法占位,后续补接口时直接实现
_ = ctx
_ = t
return nil
}
// setTaskHeadersToCtx 把任务入库时保存的 header 信息注入 ctx给 worker 调 OSS 用
func setTaskHeadersToCtx(ctx context.Context, headers map[string]string) context.Context {
if headers == nil {