picoclaw/pkg/channels/wecom
Hoshina e9b4886573 fix(wecom): fix context leak in Start() and data race in processedMsgs
Cancel the constructor-created context before overwriting in Start()
to prevent the original cancel function from becoming unreachable.

Move len(processedMsgs) check inside the write lock to eliminate a
data race, and re-insert the current msgID after map reset to prevent
duplicate processing of the in-flight message.

Applies to both WeComBotChannel and WeComAppChannel.
2026-02-28 22:08:14 +08:00
..
app.go fix(wecom): fix context leak in Start() and data race in processedMsgs 2026-02-28 22:08:14 +08:00
app_test.go fix: golangci-lint run --fix 2026-02-21 16:35:56 +08:00
bot.go fix(wecom): fix context leak in Start() and data race in processedMsgs 2026-02-28 22:08:14 +08:00
bot_test.go fix: golangci-lint run --fix 2026-02-21 16:35:56 +08:00
common.go refactor(channels): add channel subpackages and update gateway imports 2026-02-20 23:25:44 +08:00
init.go refactor(channels): add channel subpackages and update gateway imports 2026-02-20 23:25:44 +08:00