Skip to main content

spawn_writer

Function spawn_writer 

Source
pub fn spawn_writer(pool: Pool) -> bool
Expand description

Wires the usage stream into Postgres: installs the process-wide sink (proxy::usage_sink) and spawns the writer task. Call once at gateway startup, after init_schema.

Returns false when a sink was already installed (double start).