Fixed rates not turning on

This commit is contained in:
andronache
2021-09-17 13:39:07 +03:00
committed by Dan Christian Bogos
parent b835bd5604
commit f25198eb21
2 changed files with 1 additions and 1 deletions

View File

@@ -123,7 +123,6 @@ func (cS *CacheService) WaitToPrecache(ctx *context.Context, cacheIDs ...string)
case cacheS = <-cS.cacheCh:
cS.cacheCh <- cacheS
}
return
for _, cacheID := range cacheIDs {
select {

View File

@@ -164,6 +164,7 @@ func cgrStartFilterService(ctx *context.Context, iFilterSCh chan *engine.FilterS
var cacheS *engine.CacheS
select {
case cacheS = <-cacheSCh:
cacheSCh <- cacheS
case <-ctx.Done():
return
}