We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc177ed commit 6f410f2Copy full SHA for 6f410f2
pkg/notification/manager.go
@@ -4,7 +4,6 @@ import (
4
"sync"
5
6
"github.com/TimothyYe/godns/internal/settings"
7
- "github.com/TimothyYe/godns/pkg/lib"
8
9
log "github.com/sirupsen/logrus"
10
)
@@ -72,10 +71,8 @@ func initNotifications(conf *settings.Settings) map[string]INotification {
72
71
73
func (n *notificationManager) Send(domain, currentIP string) {
74
for _, sender := range n.notifications {
75
- lib.SafeGo(func() {
76
- if err := sender.Send(domain, currentIP); err != nil {
77
- log.Error("Send notification with error:", err)
78
- }
79
- })
+ if err := sender.Send(domain, currentIP); err != nil {
+ log.Error("Send notification with error:", err)
+ }
80
}
81
0 commit comments