From 47285d5af803ed26d52b7f248a8f2de556e9057f Mon Sep 17 00:00:00 2001 From: Vika Date: Thu, 12 May 2022 01:37:59 +0300 Subject: treewide: prepare for mf2 parsing and cleanup unused code --- src/frontend/mod.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/frontend') diff --git a/src/frontend/mod.rs b/src/frontend/mod.rs index 3c3072d..eec2f85 100644 --- a/src/frontend/mod.rs +++ b/src/frontend/mod.rs @@ -286,8 +286,10 @@ pub fn homepage(db: D, endpoints: IndiewebEndpoints) -> impl Filter< }) } -pub fn onboarding( - db: D, endpoints: IndiewebEndpoints, http: hyper::Client +pub fn onboarding( + db: D, + endpoints: IndiewebEndpoints, + http: reqwest::Client ) -> impl Filter + Clone { let inject_db = move || db.clone(); warp::get() @@ -304,7 +306,7 @@ pub fn onboarding()) .and(warp::any().map(move || http.clone())) - .and_then(|host: warp::host::Authority, db: D, body: OnboardingData, http: _| async move { + .and_then(|host: warp::host::Authority, db: D, body: OnboardingData, http: reqwest::Client| async move { let user_uid = format!("https://{}/", host.as_str()); if db.post_exists(&user_uid).await.map_err(FrontendError::from)? { -- cgit 1.4.1