Skip to content

chore: remove notifications experiment #14869

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Oct 1, 2024
Prev Previous commit
Next Next commit
Only close done channel when notifier is present
Signed-off-by: Danny Kopping <danny@coder.com>
  • Loading branch information
dannykopping committed Oct 1, 2024
commit 6e7c919c79826687f7fbcda3c8497b263726c17c
4 changes: 3 additions & 1 deletion coderd/notifications/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ func (m *Manager) Run(ctx context.Context) {
// events, creating a notifier, and publishing bulk dispatch result updates to the store.
func (m *Manager) loop(ctx context.Context) error {
defer func() {
close(m.done)
if m.notifier != nil {
close(m.done)
}
m.log.Info(context.Background(), "notification manager stopped")
}()

Expand Down