mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-11-04 08:21:11 +00:00 
			
		
		
		
	Remove hardcoded ES indexername (#12521)
This commit is contained in:
		
					parent
					
						
							
								61a172900e
							
						
					
				
			
			
				commit
				
					
						e14f6088f8
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -171,7 +171,7 @@ func InitIssueIndexer(syncReindex bool) {
 | 
				
			||||||
			log.Debug("Created Bleve Indexer")
 | 
								log.Debug("Created Bleve Indexer")
 | 
				
			||||||
		case "elasticsearch":
 | 
							case "elasticsearch":
 | 
				
			||||||
			graceful.GetManager().RunWithShutdownFns(func(_, atTerminate func(context.Context, func())) {
 | 
								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 {
 | 
									if err != nil {
 | 
				
			||||||
					log.Fatal("Unable to initialize Elastic Search Issue Indexer at connection: %s Error: %v", setting.Indexer.IssueConnStr, err)
 | 
										log.Fatal("Unable to initialize Elastic Search Issue Indexer at connection: %s Error: %v", setting.Indexer.IssueConnStr, err)
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue