MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / Start

Method Start

internal/webhookpub/worker.go:97–100  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

95// reader in a sibling goroutine and runs the tick loop on the calling
96// goroutine. Both stop when ctx is cancelled.
97func (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

Callers

nothing calls this directly

Calls 2

listenLoopMethod · 0.95
tickLoopMethod · 0.95

Tested by

no test coverage detected