Race condition fix: copy BatchPoints into goroutine

Fixes #250
This commit is contained in:
Cameron Sparr
2015-10-08 11:33:56 -06:00
parent d9f1a60a64
commit 7293376973
3 changed files with 51 additions and 1 deletions

View File

@@ -9,6 +9,11 @@ build: prepare
"-X main.Version=$(VERSION)" \
./cmd/telegraf/telegraf.go
dev: prepare
$(GOBIN)/godep go build -race -o telegraf -ldflags \
"-X main.Version=$(VERSION)" \
./cmd/telegraf/telegraf.go
build-linux-bins: prepare
GOARCH=amd64 GOOS=linux $(GOBIN)/godep go build -o telegraf_linux_amd64 \
-ldflags "-X main.Version=$(VERSION)" \