From 989a09274f47a47d75f119d0c8717052d01918e8 Mon Sep 17 00:00:00 2001 From: yusing Date: Thu, 6 Feb 2025 18:25:24 +0800 Subject: [PATCH] restore notification --- internal/notif/dispatcher.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/notif/dispatcher.go b/internal/notif/dispatcher.go index c8431b2..aec19ca 100644 --- a/internal/notif/dispatcher.go +++ b/internal/notif/dispatcher.go @@ -42,9 +42,6 @@ func StartNotifDispatcher(parent task.Parent) *Dispatcher { } func Notify(msg *LogMessage) { - if dispatcher == nil { - return - } select { case <-dispatcher.task.Context().Done(): return