Skip to content

Commit ad42260

Browse files
committed
Fix issue with re-initialization in indexer during tests
1 parent e93af21 commit ad42260

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/indexer/issues/indexer.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,13 @@ var (
5151
// issueIndexerQueue queue of issue ids to be updated
5252
issueIndexerQueue Queue
5353
issueIndexer Indexer
54-
waitChannel = make(chan struct{})
54+
waitChannel chan struct{}
5555
)
5656

5757
// InitIssueIndexer initialize issue indexer, syncReindex is true then reindex until
5858
// all issue index done.
5959
func InitIssueIndexer(syncReindex bool) {
60+
waitChannel = make(chan struct{})
6061
go func() {
6162
var populate bool
6263
var dummyQueue bool

0 commit comments

Comments
 (0)