/// This is the start of 'resizer' as a service. 
/// It's where we initialize the server and set up everything.
This is the start of 'resizer' as a service.
It's where we initialize the server and set up everything.
This is the start of ' resizer ' as a service . It ' s where we initialize the server and set up everything .
pub async fn run_resizer() -> Result<(), Box<dyn std::error::Error>> {
    let settings = init_settings();
    let addr = settings.img_prov_addr.parse()?;
    Server::builder()
        .add_service(ImageServiceServer::new(ImageProvider::new(&settings)))
        .serve(addr)
        .await?;
    Ok(())
}
pub async fn run_resizer ( ) -> Result < ( ) , Box < dyn std :: error :: Error > > { let settings = init_settings ( ) ; let addr = settings . img_prov_addr . parse ( ) ? ; Server :: builder ( ) . add_service ( ImageServiceServer :: new ( ImageProvider :: new ( & settings ) ) ) . serve ( addr ) . await ? ; Ok ( ( ) ) }
This is the start of 'resizer' as a service.
This is the start of ' resizer ' as a service .