diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-04-07 09:11:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-07 01:11:25 +0000 |
commit | bbe5cd7c92ccc3793473ae0163398cdbccdd4246 (patch) | |
tree | 1f0b092450ff2b5f86320f79387fe44916b530c9 /modules/setting/indexer.go | |
parent | 48223909be0511bcd773bceea76918bfd7cc7d46 (diff) | |
download | gitea-bbe5cd7c92ccc3793473ae0163398cdbccdd4246.tar.gz gitea-bbe5cd7c92ccc3793473ae0163398cdbccdd4246.zip |
Refactor startup deprecation messages (#30305)
It doesn't change logic, it only does:
1. Rename the variable and function names
2. Use more consistent format when mentioning config section&key
3. Improve some messages
Diffstat (limited to 'modules/setting/indexer.go')
-rw-r--r-- | modules/setting/indexer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/indexer.go b/modules/setting/indexer.go index cec364d370..6877d70e3c 100644 --- a/modules/setting/indexer.go +++ b/modules/setting/indexer.go @@ -58,7 +58,7 @@ func loadIndexerFrom(rootCfg ConfigProvider) { if !filepath.IsAbs(Indexer.IssuePath) { Indexer.IssuePath = filepath.ToSlash(filepath.Join(AppWorkPath, Indexer.IssuePath)) } - checkOverlappedPath("indexer.ISSUE_INDEXER_PATH", Indexer.IssuePath) + checkOverlappedPath("[indexer].ISSUE_INDEXER_PATH", Indexer.IssuePath) } else { Indexer.IssueConnStr = sec.Key("ISSUE_INDEXER_CONN_STR").MustString(Indexer.IssueConnStr) if Indexer.IssueType == "meilisearch" { |