mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-22 07:38:45 +05:00
Restore startDispatcherService in cgr-engine
This commit is contained in:
committed by
Dan Christian Bogos
parent
65ee7fdba0
commit
3d8e7edbd9
@@ -1128,7 +1128,7 @@ func startDispatcherService(internalDispatcherSChan, internalRaterChan chan rpcc
|
||||
}
|
||||
}
|
||||
|
||||
// startDispatcherService fires up the AnalyzerS
|
||||
// startAnalyzerService fires up the AnalyzerS
|
||||
func startAnalyzerService(internalAnalyzerSChan chan rpcclient.RpcClientConnection,
|
||||
server *utils.Server, exitChan chan bool) {
|
||||
utils.Logger.Info("Starting CGRateS Analyzer service.")
|
||||
@@ -1554,6 +1554,10 @@ func main() {
|
||||
internalRsChan, internalStatSChan,
|
||||
cfg, dm, server, exitChan, filterSChan, internalAttributeSChan)
|
||||
}
|
||||
if cfg.DispatcherSCfg().Enabled {
|
||||
go startDispatcherService(internalDispatcherSChan,
|
||||
internalRaterChan, cacheS, dm, server, exitChan)
|
||||
}
|
||||
|
||||
if cfg.AnalyzerSCfg().Enabled {
|
||||
go startAnalyzerService(internalAnalyzerSChan, server, exitChan)
|
||||
|
||||
Reference in New Issue
Block a user