Skip to main content

serve

Function serve 

Source
pub async fn serve(
    addrs: Vec<SocketAddr>,
    engine: Arc<Engine>,
    forwarder: Option<Arc<Forwarder>>,
    metrics: Shared,
    config: ServeConfig,
    streams: Option<NodeStreams>,
)
Expand description

Listens on every address in addrs for the life of the process, with one set of subscriptions behind them all. An address that can’t be bound is retried on its own: ingestion matters more than the API, and an address still held by the server being replaced is taken over once it is freed.