1
1
mirror of https://github.com/go-gitea/gitea synced 2025-09-28 03:28:13 +00:00

chore: fix problems caused by rebase

This commit is contained in:
Jason Song
2022-11-25 16:35:46 +08:00
parent 295a7f68c8
commit 378e1f8d01
8 changed files with 26 additions and 147 deletions

View File

@@ -46,7 +46,7 @@ func (runners RunnerList) LoadOwners(ctx context.Context) error {
}
func (runners RunnerList) getRepoIDs() []int64 {
repoIDs := make(map[int64]struct{}, len(runners))
repoIDs := make(container.Set[int64], len(runners))
for _, runner := range runners {
if runner.RepoID == 0 {
continue
@@ -55,7 +55,7 @@ func (runners RunnerList) getRepoIDs() []int64 {
repoIDs[runner.RepoID] = struct{}{}
}
}
return container.KeysInt64(repoIDs)
return repoIDs.Values()
}
func (runners RunnerList) LoadRepos(ctx context.Context) error {