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
2020-09-26 13:35:11 +02:00
parent 157736a99d
commit 49be089a23
3 changed files with 65 additions and 43 deletions

View File

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