Skip to content

Commit

Permalink
Remove hardcoded ES indexername (#12521)
Browse files Browse the repository at this point in the history
  • Loading branch information
42wim committed Aug 18, 2020
1 parent 61a1729 commit e14f608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/indexer/issues/indexer.go
Expand Up @@ -171,7 +171,7 @@ func InitIssueIndexer(syncReindex bool) {
log.Debug("Created Bleve Indexer")
case "elasticsearch":
graceful.GetManager().RunWithShutdownFns(func(_, atTerminate func(context.Context, func())) {
issueIndexer, err := NewElasticSearchIndexer(setting.Indexer.IssueConnStr, "gitea_issues")
issueIndexer, err := NewElasticSearchIndexer(setting.Indexer.IssueConnStr, setting.Indexer.IssueIndexerName)
if err != nil {
log.Fatal("Unable to initialize Elastic Search Issue Indexer at connection: %s Error: %v", setting.Indexer.IssueConnStr, err)
}
Expand Down

0 comments on commit e14f608

Please sign in to comment.