mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
server/config: address golangci var-naming issues
Addresses issues in V2 Deprecation constant names. Signed-off-by: Ivan Valdes <ivan@vald.es>
This commit is contained in:
@@ -546,7 +546,7 @@ func NewConfig() *Config {
|
||||
ExperimentalCompactHashCheckEnabled: false,
|
||||
ExperimentalCompactHashCheckTime: DefaultExperimentalCompactHashCheckTime,
|
||||
|
||||
V2Deprecation: config.V2_DEPR_DEFAULT,
|
||||
V2Deprecation: config.V2DeprDefault,
|
||||
|
||||
DiscoveryCfg: v3discovery.DiscoveryConfig{
|
||||
ConfigSpec: clientv3.ConfigSpec{
|
||||
@@ -1149,7 +1149,7 @@ func (cfg *Config) ElectionTicks() int { return int(cfg.ElectionMs / cfg.TickMs)
|
||||
|
||||
func (cfg *Config) V2DeprecationEffective() config.V2DeprecationEnum {
|
||||
if cfg.V2Deprecation == "" {
|
||||
return config.V2_DEPR_DEFAULT
|
||||
return config.V2DeprDefault
|
||||
}
|
||||
return cfg.V2Deprecation
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user