Skip to main content

new

pub async fn new<C, P: AsRef<Path>>(
    db_path: P,
) -> Result<(FjallLogStore<C>, FjallStateMachine), Error>
where C: RaftTypeConfig,
Expand description

Create a pair of FjallLogStore and FjallStateMachine that are backed by a same fjall db instance.