summaryrefslogtreecommitdiffstats
path: root/modules/indexer/code/wrapped.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/indexer/code/wrapped.go')
-rw-r--r--modules/indexer/code/wrapped.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/indexer/code/wrapped.go b/modules/indexer/code/wrapped.go
index 926597a382..d839544874 100644
--- a/modules/indexer/code/wrapped.go
+++ b/modules/indexer/code/wrapped.go
@@ -7,6 +7,8 @@ package code
import (
"fmt"
"sync"
+
+ "code.gitea.io/gitea/models"
)
var (
@@ -55,12 +57,12 @@ func (w *wrappedIndexer) get() (Indexer, error) {
return w.internal, nil
}
-func (w *wrappedIndexer) Index(repoID int64) error {
+func (w *wrappedIndexer) Index(repo *models.Repository, sha string, changes *repoChanges) error {
indexer, err := w.get()
if err != nil {
return err
}
- return indexer.Index(repoID)
+ return indexer.Index(repo, sha, changes)
}
func (w *wrappedIndexer) Delete(repoID int64) error {