Skip to content

Commit

Permalink
stop copying mutexes derp
Browse files Browse the repository at this point in the history
  • Loading branch information
rosecodym committed Dec 19, 2024
1 parent 6ba1339 commit c34f40a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ type Engine struct {
concurrency int
decoders []decoders.Decoder
detectors []detectors.Detector
verificationCache verificationcache.VerificationCache
verificationCache *verificationcache.VerificationCache
// Any detectors configured to override sources' verification flags
detectorVerificationOverrides map[config.DetectorID]bool

Expand Down
4 changes: 2 additions & 2 deletions pkg/verificationcache/verification_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ type VerificationCache struct {
// New creates a new verification cache with the provided result cache and metrics reporter. If resultCache is nil, the
// verification cache will be a no-op passthrough, although it will still record relevant metrics to the provided
// metrics reporter in this case.
func New(resultCache ResultCache, metrics MetricsReporter) VerificationCache {
func New(resultCache ResultCache, metrics MetricsReporter) *VerificationCache {
if metrics == nil {
metrics = &InMemoryMetrics{}
}

return VerificationCache{
return &VerificationCache{
metrics: metrics,
resultCache: resultCache,
hasher: hasher.NewBlake2B(),
Expand Down

0 comments on commit c34f40a

Please sign in to comment.