fn check_not_causally_ready_failure(result: Result<()>) -> anyhow::Result<()> {
        match result {
            Err(Error::OpNotCausallyReady) => Ok(()),
            Err(err) => Err(anyhow!("Error returned was the unexpected one: {}", err)),
            Ok(()) => Err(anyhow!("Data op applied unexpectedly".to_string(),)),
        }
    }
// check it fails due to not being causally ready
check it fails due to not being causally ready
check it fails due to not being causally ready
fn check_not_causally_ready_failure(result: Result<()>) -> anyhow::Result<()> {
        match result {
            Err(Error::OpNotCausallyReady) => Ok(()),
            Err(err) => Err(anyhow!("Error returned was the unexpected one: {}", err)),
            Ok(()) => Err(anyhow!("Data op applied unexpectedly".to_string(),)),
        }
    }
fn check_not_causally_ready_failure ( result : Result < ( ) > ) -> anyhow :: Result < ( ) > { match result { Err ( Error :: OpNotCausallyReady ) => Ok ( ( ) ) , Err ( err ) => Err ( anyhow ! ( " " err ) ) , Ok ( ( ) ) => Err ( anyhow ! ( " " to_string ( ) ) ) , } }
check it fails due to not being causally ready
check it fails due to not being causally ready
result
Result<()>
result
Result<()>