From 267be6e1fafd5607540fda5e2e6ed1febbfd71ac Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Fri, 8 Oct 2021 11:59:44 +0800 Subject: [PATCH] update --- core/push.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/core/push.go b/core/push.go index 127c934..508a006 100644 --- a/core/push.go +++ b/core/push.go @@ -3,7 +3,6 @@ package core import ( "regexp" "strings" - "sync" "github.com/beego/beego/v2/adapter/httplib" ) @@ -36,18 +35,9 @@ func (ct *Chat) Push(content interface{}) { } } -var notLock sync.Locker -var msgs = map[string]string{} - func NotifyMasters(content string) { go func() { content = strings.Trim(content, " ") - notLock.Lock() - defer notLock.Unlock() - if _, ok := msgs[content]; ok { - return - } - msgs[content] = "" if sillyGirl.GetBool("ignore_notify", false) == true { return }