From 983bbafe97b2d55a57f776cf92e80a66319440da Mon Sep 17 00:00:00 2001 From: silenceqi Date: Sat, 25 Jan 2025 09:04:34 +0800 Subject: [PATCH] chore: remove easysearch version check for elasticsearch simulation (#103) --- main.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/main.go b/main.go index d951d4bb..b58bcc92 100644 --- a/main.go +++ b/main.go @@ -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)