2
0
mirror of https://github.com/status-im/consul.git synced 2025-01-20 18:50:04 +00:00
Dhia Ayachi 1eac39ae9c
clone the service under lock to avoid a data race ()
* 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

4 lines
84 B
Plaintext

```release-note:bug
Mutate `NodeService` struct properly to avoid a data race.
```