Sfoglia il codice sorgente

Remove hardcoded ES indexername (#12521) (#12526)

Co-authored-by: Wim <wim@42.be>
tags/v1.12.4
John Olheiser 3 anni fa
parent
commit
24ed1b5feb
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      modules/indexer/issues/indexer.go

+ 1
- 1
modules/indexer/issues/indexer.go Vedi File

@@ -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)
}

Loading…
Annulla
Salva