mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Make Repo Code Indexer an Unique Queue (#17515)
The functioning of the code indexer queue really only makes sense as an unique queue and doing this allows use to simplify the indexer data to simply delete the data if the repo is no longer in the db. Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
@@ -44,7 +44,6 @@ func TestSearchRepo(t *testing.T) {
|
||||
repo, err = models.GetRepositoryByOwnerAndName("user2", "glob")
|
||||
assert.NoError(t, err)
|
||||
|
||||
executeIndexer(t, repo, code_indexer.DeleteRepoFromIndexer)
|
||||
executeIndexer(t, repo, code_indexer.UpdateRepoIndexer)
|
||||
|
||||
testSearch(t, "/user2/glob/search?q=loren&page=1", []string{"a.txt"})
|
||||
|
Reference in New Issue
Block a user