meta_srv::state

Function become_leader

Source
pub fn become_leader(enable_leader_cache: bool) -> impl FnOnce(&State) -> State