mirror of https://github.com/hashicorp/consul
Since state.Checks() returns a shallow copy its elements must not be modified. Copying the elements in the handler does not guarantee consistency since that list is guarded by a different lock. Therefore, the only solution is to have state.Checks() return a deep copy.pull/3343/head^2
parent
2567a94a81
commit
56e6439be9
Loading…
Reference in new issue