Skip to content

Commit

Permalink
Add UpgradeCompleted effect to observer doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ycombinator committed Oct 13, 2023
1 parent c3b031a commit 978b309
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/pkg/agent/application/upgrade/details/details.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ func (d *Details) RegisterObserver(observer Observer) {
}

// NotifyObservers sends the current upgrade details to all registered
// observers.
// observers. When an upgrade has completed (StateCompleted), the observers
// will be sent a nil value.
func (d *Details) NotifyObservers() {
d.mu.RLock()
defer d.mu.RUnlock()
Expand Down

0 comments on commit 978b309

Please sign in to comment.