This commit is contained in:
ryan
2026-07-13 15:17:45 +08:00
parent 08e61ce833
commit e0eb4e5975
334 changed files with 17212 additions and 12321 deletions
+1 -1
View File
@@ -13,4 +13,4 @@ import (
var ErrForbidden = errors.New("upload forbidden")
// ErrStorageReadOnly indicates the storage backend is in migration read-only mode.
var ErrStorageReadOnly = errors.New(shared.ErrStorageReadOnly)
var ErrStorageReadOnly = errors.New(shared.ErrStorageReadOnly)
+1 -1
View File
@@ -195,4 +195,4 @@ func createNewUpload(ctx context.Context, req Request) (Result, error) {
Created: true,
Stored: true,
}, nil
}
}
+1 -1
View File
@@ -61,4 +61,4 @@ func ingestWithHashPolicy(ctx context.Context, req Request) (Result, error) {
}
return createNewUpload(ctx, req)
}
}
+1 -1
View File
@@ -326,4 +326,4 @@ func setupMockStorage(t *testing.T, putCount *int) (restore func(), disable func
storage.ResetCache()
}
return restore, disable
}
}
+1 -1
View File
@@ -55,4 +55,4 @@ func softDeleteUploadWithStats(ctx context.Context, upload *model.Upload) error
}
uploadcache.InvalidateUploadMetaCache(ctx, upload.ID)
return nil
}
}
+1 -1
View File
@@ -57,4 +57,4 @@ type Result struct {
Created bool
Stored bool
Resolved bool
}
}