mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04:30:05 +00:00
refactor: 优化代码组织结构
This commit is contained in:
@@ -16,7 +16,7 @@ const firstNotificationDelay = time.Minute * 15
|
||||
var notifications []model.Notification
|
||||
var notificationsLock sync.RWMutex
|
||||
|
||||
// LoadNotifications 加载通知方式到 singleton.notifications 变量
|
||||
// LoadNotifications 从 DB 加载通知方式到 singleton.notifications 变量
|
||||
func LoadNotifications() {
|
||||
notificationsLock.Lock()
|
||||
if err := DB.Find(¬ifications).Error; err != nil {
|
||||
|
||||
Reference in New Issue
Block a user