graft
graft copied to clipboard
Fixing race conditions
I'm using this library with -race
and Go warned me about some possible race conditions.
This commit fixes it.
All tests are still working. :1st_place_medal:
Coverage: 91.173% (+0.1%) from 91.052% when pulling 68aad8b6b880c77c47b3512b117deb4aaef3d9b1 on rwrz:fix-race into 5f246deca4c2a70efb107df41606867123bd3142 on nats-io:master.
Need to fix one failure on CI failure.
https://app.travis-ci.com/github/nats-io/graft/jobs/592230016
Seems to be just a download error. Can you retry?
go 1.16 is complaining about the following.
github.com/nats-io/nats-server/[email protected]/server/events.go:31:2: //go:build comment without // +build comment
I might suggest bumping the Go version in the .travis file to go 1.18 and go 1.19 and see if it clears.