chore: remove easysearch version check for elasticsearch simulation (#103)

This commit is contained in:
silenceqi 2025-01-25 09:04:34 +08:00 committed by GitHub
parent 0fa4411041
commit 983bbafe97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 6 deletions

View File

@ -188,12 +188,6 @@ func main() {
})
api.RegisterAppSetting("system_cluster", func() interface{} {
client := elastic.GetClient(global.MustLookupString(elastic.GlobalSystemElasticsearchID))
ver := client.GetVersion()
if ver.Distribution != elastic.Easysearch {
return map[string]interface{}{
"rollup_enabled": false,
}
}
settings, err := client.GetClusterSettings(nil)
if err != nil {
log.Errorf("failed to get cluster settings with system cluster: %v", err)