From 8e32e73e0f2bed3dda97906f6bb1683f25d1b411 Mon Sep 17 00:00:00 2001 From: Trial97 Date: Fri, 8 Nov 2019 13:12:59 +0200 Subject: [PATCH] Updated checkConfigSanity --- config/config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/config.go b/config/config.go index 58940392c..65f62cb79 100755 --- a/config/config.go +++ b/config/config.go @@ -693,7 +693,7 @@ func (cfg *CGRConfig) checkConfigSanity() error { } } // DataDB sanity checks - if cfg.DataDbCfg().DataDbType == utils.MetaInternal { + if cfg.dataDbCfg.DataDbType == utils.MetaInternal { for key, config := range cfg.cacheCfg { if key == utils.CacheDiameterMessages || key == utils.CacheClosedSessions { if config.Limit == 0 { @@ -708,8 +708,8 @@ func (cfg *CGRConfig) checkConfigSanity() error { if cfg.resourceSCfg.StoreInterval != -1 { return fmt.Errorf("<%s> StoreInterval needs to be -1 when DataBD is *internal, received : %d", utils.ResourceS, cfg.resourceSCfg.StoreInterval) } - if cfg.StatSCfg().StoreInterval != -1 { - return fmt.Errorf("<%s> StoreInterval needs to be -1 when DataBD is *internal, received : %d", utils.StatS, cfg.StatSCfg().StoreInterval) + if cfg.statsCfg.StoreInterval != -1 { + return fmt.Errorf("<%s> StoreInterval needs to be -1 when DataBD is *internal, received : %d", utils.StatS, cfg.statsCfg.StoreInterval) } if cfg.thresholdSCfg.StoreInterval != -1 { return fmt.Errorf("<%s> StoreInterval needs to be -1 when DataBD is *internal, received : %d", utils.ThresholdS, cfg.thresholdSCfg.StoreInterval)