diff --git a/statediff/config.go b/statediff/config.go index 8f5c718ae..83e83da7b 100644 --- a/statediff/config.go +++ b/statediff/config.go @@ -88,9 +88,9 @@ type ParamsWithMutex struct { // CopyParams returns a defensive copy of the Params func (p *ParamsWithMutex) CopyParams() Params { p.RLock() - defer p.RUnlock() - copy := p.Params.Copy() + p.RUnlock() + copy.ComputeWatchedAddressesLeafPaths() return copy }