Skip to content

Commit

Permalink
dev: include clickhouse as prefix for xml config generator
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsingerus committed Oct 3, 2024
1 parent 2d1f044 commit ba9037c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/model/chk/config/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,12 @@ func (c *Generator) getHostRaft(host *chi.Host) string {
return nil
})

// Write xml as:
// <clickhouse>
// CONFIG
// settings as xml
// </clickhouse>
config := &bytes.Buffer{}
util.Iline(config, 0, "<clickhouse>")
xml.GenerateFromSettings(config, settings, "")
util.Iline(config, 0, "</clickhouse>")
xml.GenerateFromSettings(config, settings, "clickhouse")

return config.String()
}
Expand Down

0 comments on commit ba9037c

Please sign in to comment.