Skip to content

Commit

Permalink
Fix bug where the defensive copy loses the computed leaf paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
telackey committed Jul 21, 2023
1 parent c72b45f commit 7f57cec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions statediff/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 7f57cec

Please sign in to comment.