Updated config tests

This commit is contained in:
Trial97
2020-11-16 08:58:30 +02:00
committed by Dan Christian Bogos
parent 6cbf457e35
commit 8b98dd2879
2 changed files with 44 additions and 42 deletions

View File

@@ -194,8 +194,6 @@ func NewDefaultCGRConfig() (cfg *CGRConfig, err error) {
cfg.apiBanCfg = new(APIBanCfg)
cfg.coreSCfg = new(CoreSCfg)
cfg.ConfigReloads = make(map[string]chan struct{})
var cgrJSONCfg *CgrJsonCfg
if cgrJSONCfg, err = NewCgrJsonCfgFromBytes([]byte(CGRATES_CFG_JSON)); err != nil {
return
@@ -286,8 +284,7 @@ type CGRConfig struct {
loaderCfg LoaderSCfgs // LoaderS configs
httpAgentCfg HttpAgentCfgs // HttpAgent configs
ConfigReloads map[string]chan struct{} // Signals to specific entities that a config reload should occur
rldChans map[string]chan struct{} // index here the channels used for reloads
rldChans map[string]chan struct{} // index here the channels used for reloads
rpcConns RpcConns

File diff suppressed because one or more lines are too long