rcrowley / go-metrics

Go port of Coda Hale's Metrics library
Other
3.43k stars 493 forks source link

fix(meter): arbiter tick goroutine leak #298

Open napallday opened 10 months ago

napallday commented 10 months ago

arbiter will tick periodically forever.

Normally it wouldn't cause any issue. But it's very inconvenient for users if Goroutine leak detector(like https://github.com/uber-go/goleak) is used in testing phase.

btw, I also change the nested lock in arbiter for better navigation.