aboutsummaryrefslogtreecommitdiff
path: root/plugin/metrics/registry.go (follow)
AgeCommit message (Collapse)AuthorFilesLines
2019-05-18plugin/metrcs: fix datarace on listeners (#2835)Gravatar Miek Gieben 1-0/+28
This fixes a data race on the listener(s) that get started in the metrics plugins. It also restore pkg/uniq to its former glory and removes and state being carried in there; this means for metrics that registry.go was to replicate that behavior *with* locking (as pkg/uniq doesn't do, or need that). Also renamed uniqAddr to just u, to make it slightly shorter. Signed-off-by: Miek Gieben <miek@miek.nl>