mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-25 00:58:45 +05:00
Fixed ShouldRun func in services for registrarc
This commit is contained in:
committed by
Dan Christian Bogos
parent
f8528cccae
commit
9b7b0d6d1c
@@ -103,11 +103,6 @@ func (dspS *RegistrarCService) ServiceName() string {
|
||||
|
||||
// ShouldRun returns if the service should be running
|
||||
func (dspS *RegistrarCService) ShouldRun() bool {
|
||||
if len(dspS.cfg.RegistrarCCfg().RPC.RegistrarSConns) != 0 {
|
||||
return true
|
||||
}
|
||||
if len(dspS.cfg.RegistrarCCfg().Dispatchers.RegistrarSConns) != 0 {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
return len(dspS.cfg.RegistrarCCfg().RPC.RegistrarSConns) != 0 ||
|
||||
len(dspS.cfg.RegistrarCCfg().Dispatchers.RegistrarSConns) != 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user