feat: add axum dependency and implement wiring functions for federation repositories
This commit is contained in:
@@ -36,3 +36,7 @@ impl PosterFetcherClient for ReqwestPosterFetcher {
|
||||
Ok(bytes.to_vec())
|
||||
}
|
||||
}
|
||||
|
||||
pub fn create() -> anyhow::Result<std::sync::Arc<dyn domain::ports::PosterFetcherClient>> {
|
||||
Ok(std::sync::Arc::new(ReqwestPosterFetcher::new(PosterFetcherConfig::from_env())?))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user