Skip to content

Commit

Permalink
Revert "Disable ingestcache for artifacts (#2603)" (#2606)
Browse files Browse the repository at this point in the history
This reverts commit a996b53.
  • Loading branch information
rdimitrov authored and dmjb committed Mar 13, 2024
1 parent b1dc719 commit 22a6002
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions internal/engine/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,7 @@ func (e *Executor) evalEntityEvent(
// this is a cache so we can avoid querying the ingester upstream
// for every rule. We use a sync.Map because it's safe for concurrent
// access.
var ingestCache ingestcache.Cache
if inf.Type == pb.Entity_ENTITY_ARTIFACTS {
ingestCache = ingestcache.NewNoopCache()
} else {
ingestCache = ingestcache.NewCache()
}
ingestCache := ingestcache.NewCache()

defer e.releaseLockAndFlush(ctx, inf)

Expand Down

0 comments on commit 22a6002

Please sign in to comment.