fn create_ac_clients(
    num_clients: usize,
    validator_addresses: &[String],
) -> Vec<AdmissionControlClient> {
    let mut clients: Vec<AdmissionControlClient> = vec![];
    for i in 0..num_clients {
        let index = i % validator_addresses.len();
        let client = create_ac_client(&validator_addresses[index]);
        clients.push(client);
    }
    clients
}
/// Creat a vector of AdmissionControlClient and connect them to validators.
Creat a vector of AdmissionControlClient and connect them to validators.
Creat a vector of AdmissionControlClient and connect them to validators .
fn create_ac_clients(
    num_clients: usize,
    validator_addresses: &[String],
) -> Vec<AdmissionControlClient> {
    let mut clients: Vec<AdmissionControlClient> = vec![];
    for i in 0..num_clients {
        let index = i % validator_addresses.len();
        let client = create_ac_client(&validator_addresses[index]);
        clients.push(client);
    }
    clients
}
fn create_ac_clients ( num_clients : usize , validator_addresses : & [ String ] , ) -> Vec < AdmissionControlClient > { let mut clients : Vec < AdmissionControlClient > = vec ! [ ] ; for i in 0 .. num_clients { let index = i % validator_addresses . len ( ) ; let client = create_ac_client ( & validator_addresses [ index ] ) ; clients . push ( client ) ; } clients }
Creat a vector of AdmissionControlClient and connect them to validators.
Creat a vector of AdmissionControlClient and connect them to validators .
num_clients
usize
validator_addresses
&[String]