Fix bug in setting the precision before gathering metrics

Closes #175
This commit is contained in:
Cameron Sparr
2015-09-09 21:27:58 -06:00
parent 3c7c8926fb
commit 81f4aa9a5d
3 changed files with 15 additions and 9 deletions

View File

@@ -25,7 +25,11 @@ type BatchPoints struct {
}
// Add adds a measurement
func (bp *BatchPoints) Add(measurement string, val interface{}, tags map[string]string) {
func (bp *BatchPoints) Add(
measurement string,
val interface{},
tags map[string]string,
) {
bp.mu.Lock()
defer bp.mu.Unlock()