- 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> |
||
|---|---|---|
| .. | ||
| bridge | ||
| command | ||
| config | ||
| logger | ||
| model | ||
| store/kvstore | ||
| xmpp | ||
| .gitignore | ||
| api.go | ||
| configuration.go | ||
| hooks_sharedchannels.go | ||
| job.go | ||
| main.go | ||
| plugin.go | ||
| plugin_test.go | ||