pub async fn start_hbee_server() -> Result<(), DynError> {
    let make_svc = make_service_fn(|_conn| async { Ok::<_, DynError>(service_fn(exec)) });
    let addr = ([0, 0, 0, 0], 3000).into();
    let server = Server::bind(&addr).serve(make_svc);
    println!("[hbee] Listening on http://{}", addr);
    server.await?;
    Ok(())
}
// this endpoint helps simulating lambda locally
this endpoint helps simulating lambda locally
this endpoint helps simulating lambda locally
pub async fn start_hbee_server() -> Result<(), DynError> {
    let make_svc = make_service_fn(|_conn| async { Ok::<_, DynError>(service_fn(exec)) });
    let addr = ([0, 0, 0, 0], 3000).into();
    let server = Server::bind(&addr).serve(make_svc);
    println!("[hbee] Listening on http://{}", addr);
    server.await?;
    Ok(())
}
pub async fn start_hbee_server ( ) -> Result < ( ) , DynError > { let make_svc = make_service_fn ( | _conn | async { Ok :: < _ , DynError > ( service_fn ( exec ) ) } ) ; let addr = ( [ 0 , 0 , 0 , 0 ] , 3000 ) . into ( ) ; let server = Server :: bind ( & addr ) . serve ( make_svc ) ; println ! ( " " addr ) ; server . await ? ; Ok ( ( ) ) }
this endpoint helps simulating lambda locally
this endpoint helps simulating lambda locally