Function rpc_serve_with_store

Source
pub async fn rpc_serve_with_store(
    meta_store_impl: SqlMetaStore,
    election_client: ElectionClientRef,
    address_info: AddressInfo,
    max_cluster_heartbeat_interval: Duration,
    lease_interval_secs: u64,
    opts: MetaOpts,
    init_system_params: SystemParams,
    init_session_config: SessionConfig,
    shutdown: CancellationToken,
) -> MetaResult<()>
Expand description

Bootstraps the follower or leader service based on the election status.

Returns when the shutdown token is triggered, or when leader status is lost, or if the leader service fails to start.