- Add atomic.Bool draining flag to prevent new messages during shutdown - Modify Publish() to silently ignore messages when draining - Update Stop() method to set draining flag and naturally drain channel - Channel closes and routing goroutine processes all remaining messages - Zero message loss during normal plugin shutdown/restart - No complex drainage logic - leverages Go channel semantics 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
---|---|---|
.. | ||
mattermost | ||
xmpp | ||
manager.go | ||
messagebus.go | ||
user.go |