Fix race condition in munin output.

The munin server used the same structure in two goroutines at once causing
possible data corruption. A copy of the structure is now used by the second
goroutine instead.
This commit is contained in:
Hendrik van Wyk committed 2020-10-08 12:25:39 +02:00
1 parent 157736a99d
commit 49be089a23
3 files changed
+65 -43

No files matched your search

-3
View File
@@ -39,9 +39,6 @@ gofmt:
gofmt -l -s -w .
test:
go test -v ./...
test-race:
go test -v -race ./...
docker: