Start blocks on ctx — call in its own goroutine. Spawns the LISTEN reader in a sibling goroutine and runs the tick loop on the calling goroutine. Both stop when ctx is cancelled.
(ctx context.Context)
| 95 | // reader in a sibling goroutine and runs the tick loop on the calling |
| 96 | // goroutine. Both stop when ctx is cancelled. |
| 97 | func (w *OutboxWorker) Start(ctx context.Context) { |
| 98 | go w.listenLoop(ctx) |
| 99 | w.tickLoop(ctx) |
| 100 | } |
| 101 | |
| 102 | // listenLoop owns a dedicated, non-pool connection and re-issues |
| 103 | // LISTEN webhook_events_new on each reconnect. pgx's pool connections |
nothing calls this directly
no test coverage detected