Skip to main content

init_query_module

Function init_query_module 

Source
pub(in api) async fn init_query_module(
    api: &Options,
    query_opt: Query,
    mod_opt: Options,
    state: ApiState,
    tasks: &mut TaskList,
) -> Result<(Box<dyn Metrics>, Box<dyn ApiSink>, Option<Storage>)>
Expand description

Start the query module of api over this backend, returning what consensus needs from it.