async fn make_dual_call<'a>(
    target_unican: Arc<UniversalCanister<'a>>,
    assist_unican: Arc<UniversalCanister<'a>>,
    call_ctx: PayloadType,
    size: usize,
    logger: Logger,
) -> PayloadType {
    match call_ctx {
        PayloadType::XNet(i) => {
            make_xnet_call(&target_unican, &assist_unican, size)
                .await
                .unwrap();
            info!(logger, "XNet call {:?} finished", i);
        }
        PayloadType::Ingress(i) => {
            make_ingress_call(&target_unican, size).await.unwrap();
            info!(logger, "Ingress call {:?} finished", i);
        }
    }

    call_ctx
}
/// Used in the dual workload test. Depending on the `PayloadType`, the function
/// will either make an ingress call to `target_unican` or a Xnet call from
/// `assist_unican` to `target_unican`.
Used in the dual workload test.
Used in the dual workload test .
async fn make_dual_call<'a>(
    target_unican: Arc<UniversalCanister<'a>>,
    assist_unican: Arc<UniversalCanister<'a>>,
    call_ctx: PayloadType,
    size: usize,
    logger: Logger,
) -> PayloadType {
    match call_ctx {
        PayloadType::XNet(i) => {
            make_xnet_call(&target_unican, &assist_unican, size)
                .await
                .unwrap();
            info!(logger, "XNet call {:?} finished", i);
        }
        PayloadType::Ingress(i) => {
            make_ingress_call(&target_unican, size).await.unwrap();
            info!(logger, "Ingress call {:?} finished", i);
        }
    }
    call_ctx
}
async fn make_dual_call < ' a > ( target_unican : Arc < UniversalCanister < ' a > > , assist_unican : Arc < UniversalCanister < ' a > > , call_ctx : PayloadType , size : usize , logger : Logger , ) -> PayloadType { match call_ctx { PayloadType :: XNet ( i ) => { make_xnet_call ( & target_unican , & assist_unican , size ) . await . unwrap ( ) ; info ! ( logger " " i ) ; } PayloadType :: Ingress ( i ) => { make_ingress_call ( & target_unican , size ) . await . unwrap ( ) ; info ! ( logger " " i ) ; } } call_ctx }
Used in the dual workload test.
Used in the dual workload test .
target_unican
Arc<UniversalCanister<'a>>
assist_unican
Arc<UniversalCanister<'a>>
call_ctx
PayloadType
size
usize
logger
Logger
target_unican
Arc<UniversalCanister<'a>>
assist_unican
Arc<UniversalCanister<'a>>
call_ctx
PayloadType
size
usize
logger
Logger