mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
cfg: remove redundant condition in sanity check
This commit is contained in:
committed by
Dan Christian Bogos
parent
a09e0bb606
commit
501015b9f3
@@ -284,7 +284,7 @@ func (cfg *CGRConfig) checkConfigSanity() error {
|
||||
}
|
||||
}
|
||||
for _, connID := range cfg.diameterAgentCfg.StatSConns {
|
||||
isInternal := strings.HasPrefix(connID, utils.MetaInternal) || strings.HasPrefix(connID, rpcclient.BiRPCInternal)
|
||||
isInternal := strings.HasPrefix(connID, utils.MetaInternal)
|
||||
if isInternal && !cfg.statsCfg.Enabled {
|
||||
return fmt.Errorf("<%s> not enabled but requested by <%s> component", utils.StatS, utils.DiameterAgent)
|
||||
}
|
||||
@@ -293,7 +293,7 @@ func (cfg *CGRConfig) checkConfigSanity() error {
|
||||
}
|
||||
}
|
||||
for _, connID := range cfg.diameterAgentCfg.ThresholdSConns {
|
||||
isInternal := strings.HasPrefix(connID, utils.MetaInternal) || strings.HasPrefix(connID, rpcclient.BiRPCInternal)
|
||||
isInternal := strings.HasPrefix(connID, utils.MetaInternal)
|
||||
if isInternal && !cfg.thresholdSCfg.Enabled {
|
||||
return fmt.Errorf("<%s> not enabled but requested by <%s> component", utils.ThresholdS, utils.DiameterAgent)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user