Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
fangliuyu authored Aug 15, 2023
1 parent eaa1b0a commit f826643
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions plugin/coc/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,16 @@ var (
mu sync.Mutex
settingGoup = make(map[int64]settingInfo, 256)
getsetting = fcext.DoOnceOnSuccess(func(ctx *zero.Ctx) bool {
mu.Lock()
defer mu.Unlock()
gid := ctx.Event.GroupID
_, ok := settingGoup[gid]
if ok {
return true
}
settingInfo, err := loadSetting(gid)
_, err := loadSetting(gid)
if err != nil {
ctx.SendChain(message.Text("[ERROR]:", err))
return false
}
settingGoup[gid] = settingInfo
return true
})
)
Expand Down

0 comments on commit f826643

Please sign in to comment.