Skip to content

Commit

Permalink
No need to re-add metric to bloom
Browse files Browse the repository at this point in the history
  • Loading branch information
deniszh committed Aug 22, 2024
1 parent c0c6077 commit 5a39ed5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,10 @@ func (c *Cache) Add(p *points.Points) {
// despite what we have it in cache (new behaviour)
if !c.newMetricCf.Has(xxhash.Sum64([]byte(p.Metric))) {
sendMetricToNewMetricChan(c, p.Metric)
} else {
c.newMetricCf.Add(xxhash.Sum64([]byte(p.Metric)))
}
c.newMetricCf.Add(xxhash.Sum64([]byte(p.Metric)))

}
atomic.AddInt32(&c.stat.size, int32(count))
}
Expand Down

0 comments on commit 5a39ed5

Please sign in to comment.