1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Use RepositoryList instead of []*Repository (#25074)

This commit is contained in:
Lunny Xiao
2023-06-05 15:25:47 +08:00
committed by GitHub
parent ca35dec18b
commit 11598885b3
6 changed files with 10 additions and 10 deletions

View File

@@ -115,7 +115,7 @@ func GitGcRepo(ctx context.Context, repo *repo_model.Repository, timeout time.Du
return nil
}
func gatherMissingRepoRecords(ctx context.Context) ([]*repo_model.Repository, error) {
func gatherMissingRepoRecords(ctx context.Context) (repo_model.RepositoryList, error) {
repos := make([]*repo_model.Repository, 0, 10)
if err := db.Iterate(
ctx,