Commit ffe2dbef authored by ale's avatar ale

Set defaults for log compaction

parent bf4a40db
Pipeline #2478 passed with stages
in 2 minutes and 38 seconds
......@@ -27,7 +27,10 @@ func loadConfig() (*Config, error) {
if err != nil {
return nil, err
}
// Set some default values.
var config Config
config.CompactionKeepCount = 100
config.MaxAgeDays = 365
if err := yaml.Unmarshal(data, &config); err != nil {
return nil, err
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment