Changed opt for Event Exporter

This commit is contained in:
andronache
2021-05-10 10:11:17 +03:00
committed by Dan Christian Bogos
parent 83db7e77c8
commit 72b7618807
5 changed files with 6 additions and 7 deletions

View File

@@ -107,7 +107,7 @@ func openDB(cgrCfg *config.CGRConfig, cfgIdx int, dialect gorm.Dialector) (db *g
return
}
if iface, has := cgrCfg.EEsCfg().Exporters[cfgIdx].Opts[utils.SQLMaxIdleConns]; has {
if iface, has := cgrCfg.EEsCfg().Exporters[cfgIdx].Opts[utils.SQLMaxIdleConnsCfg]; has {
val, err := utils.IfaceAsTInt64(iface)
if err != nil {
return nil, nil, err