Skip to content

Commit

Permalink
Fix issue with re-initialization in indexer during tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zeripath committed Jul 23, 2019
1 parent e93af21 commit ad42260
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/indexer/issues/indexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ var (
// issueIndexerQueue queue of issue ids to be updated
issueIndexerQueue Queue
issueIndexer Indexer
waitChannel = make(chan struct{})
waitChannel chan struct{}
)

// InitIssueIndexer initialize issue indexer, syncReindex is true then reindex until
// all issue index done.
func InitIssueIndexer(syncReindex bool) {
waitChannel = make(chan struct{})
go func() {
var populate bool
var dummyQueue bool
Expand Down

0 comments on commit ad42260

Please sign in to comment.