Skip to content

Commit b2fb69a

Browse files
committed
fix(chat): concurrent map r/w
1 parent 1f0a51e commit b2fb69a

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

chat/agent.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,6 @@ func logev(ctx *zero.Ctx) {
225225
} else {
226226
return
227227
}
228-
k := zero.StateKeyPrefixKeep + "_chat_agent_logev_logged__"
229-
_, ok := ctx.State[k]
230-
if ok {
231-
return
232-
}
233-
ctx.State[k] = struct{}{}
234228
gid := ctx.Event.GroupID
235229
if gid == 0 {
236230
gid = -ctx.Event.UserID

0 commit comments

Comments
 (0)