mirror of
https://github.com/DullJZ/s3-balance.git
synced 2026-09-05 15:56:39 +08:00
remove metrics.port
This commit is contained in:
@@ -56,7 +56,7 @@ type BalancerConfig struct {
|
||||
type MetricsConfig struct {
|
||||
Enabled bool `yaml:"enabled"`
|
||||
Path string `yaml:"path"`
|
||||
Port int `yaml:"port"`
|
||||
// Port int `yaml:"port"` // 目前未使用,与主服务共享端口
|
||||
}
|
||||
|
||||
// S3APIConfig S3兼容API配置
|
||||
@@ -144,9 +144,6 @@ func (c *Config) SetDefaults() {
|
||||
if c.Metrics.Path == "" {
|
||||
c.Metrics.Path = "/metrics"
|
||||
}
|
||||
if c.Metrics.Port == 0 {
|
||||
c.Metrics.Port = 9090
|
||||
}
|
||||
|
||||
// 数据库默认值
|
||||
if c.Database.Type == "" {
|
||||
|
||||
Reference in New Issue
Block a user