mirror of
https://github.com/NotAShelf/watchdog.git
synced 2026-04-16 23:34:09 +00:00
internal/aggregate: implement hourly salt rotation for unique visitors
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I5861c5bb55153349d0710cc07c1595a96a6a6964
This commit is contained in:
parent
093160a42a
commit
d975c7b2d1
3 changed files with 41 additions and 34 deletions
|
|
@ -109,7 +109,7 @@ func NewMetricsAggregator(
|
|||
refOverflow: refOverflow,
|
||||
eventOverflow: eventOverflow,
|
||||
dailyUniques: dailyUniques,
|
||||
estimator: NewUniquesEstimator(),
|
||||
estimator: NewUniquesEstimator(cfg.Site.SaltRotation),
|
||||
stopChan: make(chan struct{}),
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue