Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions core/capabilities/don_notifier.go
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is not as described. Does it actually fix the issue?

Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,12 @@ func (n *donNotifier) Subscribe(ctx context.Context) (<-chan capabilities.DON, f

n.subscribers.Store(s, struct{}{})

if n.don.Load() != nil {
s <- *n.don.Load()
if d := n.don.Load(); d != nil {
select {
case s <- *d:
default:
// Channel already has a value from a concurrent NotifyDonSet.
}
}

return s, unsubscribe, nil
Expand Down
Loading