The HTTP request context is canceled as soon as the handler returns the response, causing PublishInbound to fail with "context canceled" when processMessage runs asynchronously in a goroutine. Use the channel's long-lived context (c.ctx) instead. |
||
|---|---|---|
| .. | ||
| app.go | ||
| app_test.go | ||
| bot.go | ||
| bot_test.go | ||
| common.go | ||
| init.go | ||