/// Benchmarker is not ready to take LoadRequest yet. This helper function convert WriteRequests
/// in a vector of LoadRequests into SubmitTransactionRequests.
/// TODO: This simple conversion is only a temporary fix. Will be removed later.
Benchmarker is not ready to take LoadRequest yet. This helper function convert WriteRequests
in a vector of LoadRequests into SubmitTransactionRequests.
TODO: This simple conversion is only a temporary fix. Will be removed later.
Benchmarker is not ready to take LoadRequest yet . This helper function convert WriteRequests in a vector of LoadRequests into SubmitTransactionRequests . TODO : This simple conversion is only a temporary fix . Will be removed later .
pub fn convert_load_to_txn_requests(reqs: Vec<LoadRequest>) -> Vec<SubmitTransactionRequest> {
    reqs.into_iter()
        .filter_map(|req| match req {
            LoadRequest::WriteRequest(submit_txn_req) => Some(submit_txn_req),
            _ => None,
        })
        .collect()
}
pub fn convert_load_to_txn_requests ( reqs : Vec < LoadRequest > ) -> Vec < SubmitTransactionRequest > { reqs . into_iter ( ) . filter_map ( | req | match req { LoadRequest :: WriteRequest ( submit_txn_req ) => Some ( submit_txn_req ) , _ => None , } ) . collect ( ) }
Benchmarker is not ready to take LoadRequest yet.
Benchmarker is not ready to take LoadRequest yet .
reqs
Vec<LoadRequest>