Skip to content

Commit

Permalink
chore: remove easysearch version check for elasticsearch simulation (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
silenceqi authored Jan 25, 2025
1 parent 0fa4411 commit 983bbaf
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 983bbaf

Please sign in to comment.