forked from forgejo/forgejo
Remove redudant functions and code (#2652)
* Remove redudant functions and code
This commit is contained in:
parent
c2346e4469
commit
dff26e25ca
5 changed files with 57 additions and 117 deletions
|
@ -27,9 +27,11 @@ func InitIssueIndexer() {
|
|||
func populateIssueIndexer() error {
|
||||
batch := indexer.IssueIndexerBatch()
|
||||
for page := 1; ; page++ {
|
||||
repos, _, err := Repositories(&SearchRepoOptions{
|
||||
repos, _, err := SearchRepositoryByName(&SearchRepoOptions{
|
||||
Page: page,
|
||||
PageSize: 10,
|
||||
OrderBy: SearchOrderByID,
|
||||
Private: true,
|
||||
})
|
||||
if err != nil {
|
||||
return fmt.Errorf("Repositories: %v", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue