Skip to content

Commit

Permalink
fix data race in syncer/launcher (#14050)
Browse files Browse the repository at this point in the history
  • Loading branch information
ettec committed Aug 6, 2024
1 parent e014a13 commit 537d2ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/twelve-balloons-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

#internal fix data race in syncer launcher
2 changes: 2 additions & 0 deletions core/capabilities/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ func (r *Registry) LocalNode(ctx context.Context) (capabilities.Node, error) {
}

func (r *Registry) ConfigForCapability(ctx context.Context, capabilityID string, donID uint32) (capabilities.CapabilityConfiguration, error) {
r.mu.RLock()
defer r.mu.RUnlock()
if r.metadataRegistry == nil {
return capabilities.CapabilityConfiguration{}, errors.New("metadataRegistry information not available")
}
Expand Down

0 comments on commit 537d2ec

Please sign in to comment.