fn add_subnet_record(
    data_provider: &ProtoRegistryDataProvider,
    subnet_id: SubnetId,
    members: Vec<NodeId>,
) {
    let mut subnet_record = test_subnet_record();
    subnet_record.membership = members.iter().map(|id| id.get().into_vec()).collect();
    data_provider
        .add(
            &make_subnet_record_key(subnet_id),
            REGISTRY_VERSION,
            Some(subnet_record),
        )
        .expect("Could not add subnet record.");
}
/// Adds a subnet record with the given values to the given data provider.
Adds a subnet record with the given values to the given data provider.
Adds a subnet record with the given values to the given data provider .
fn add_subnet_record(
    data_provider: &ProtoRegistryDataProvider,
    subnet_id: SubnetId,
    members: Vec<NodeId>,
) {
    let mut subnet_record = test_subnet_record();
    subnet_record.membership = members.iter().map(|id| id.get().into_vec()).collect();
    data_provider
        .add(
            &make_subnet_record_key(subnet_id),
            REGISTRY_VERSION,
            Some(subnet_record),
        )
        .expect("Could not add subnet record.");
}
fn add_subnet_record ( data_provider : & ProtoRegistryDataProvider , subnet_id : SubnetId , members : Vec < NodeId > , ) { let mut subnet_record = test_subnet_record ( ) ; subnet_record . membership = members . iter ( ) . map ( | id | id . get ( ) . into_vec ( ) ) . collect ( ) ; data_provider . add ( & make_subnet_record_key ( subnet_id ) , REGISTRY_VERSION , Some ( subnet_record ) , ) . expect ( " " ) ; }
Adds a subnet record with the given values to the given data provider.
Adds a subnet record with the given values to the given data provider .
data_provider
&ProtoRegistryDataProvider
subnet_id
SubnetId
members
Vec<NodeId>
data_provider
&ProtoRegistryDataProvider
subnet_id
SubnetId
members
Vec<NodeId>