consul/agent/local
Dhia Ayachi 1eac39ae9c
clone the service under lock to avoid a data race (#11940)
* clone the service under lock to avoid a data race

* add change log

* create a struct and copy the pointer to mutate it to avoid a data race

* fix failing test

* revert added space

* add comments, to clarify the data race.
2022-01-06 14:33:06 -05:00
..
state.go clone the service under lock to avoid a data race (#11940) 2022-01-06 14:33:06 -05:00
state_test.go clone the service under lock to avoid a data race (#11940) 2022-01-06 14:33:06 -05:00
testing.go Fix a bunch of linter warnings 2020-11-09 09:22:12 -05:00