mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-24 16:48:45 +05:00
Added integration tests for CacheSv1 methods from DispatcherSv1
This commit is contained in:
committed by
Dan Christian Bogos
parent
ac31d88d43
commit
2c2860ae82
@@ -1327,7 +1327,9 @@ func main() {
|
||||
|
||||
// init cache
|
||||
cacheS := engine.NewCacheS(cfg, dm)
|
||||
server.RpcRegister(v1.NewCacheSv1(cacheS)) // before pre-caching so we can check status via API
|
||||
if !cfg.DispatcherSCfg().Enabled {
|
||||
server.RpcRegister(v1.NewCacheSv1(cacheS)) // before pre-caching so we can check status via API
|
||||
}
|
||||
go func() {
|
||||
if err := cacheS.Precache(); err != nil {
|
||||
errCGR := err.(*utils.CGRError)
|
||||
|
||||
Reference in New Issue
Block a user