about summary refs log tree commit diff
path: root/src/frontend
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2022-05-12 01:37:59 +0300
committerVika <vika@fireburn.ru>2022-05-12 01:37:59 +0300
commit47285d5af803ed26d52b7f248a8f2de556e9057f (patch)
treef385c797742a4e98d1c78ba803396bd6ffe44b35 /src/frontend
parent34f1c6229bac92212c97cbacc77801d4a2921e4a (diff)
downloadkittybox-47285d5af803ed26d52b7f248a8f2de556e9057f.tar.zst
treewide: prepare for mf2 parsing and cleanup unused code
Diffstat (limited to 'src/frontend')
-rw-r--r--src/frontend/mod.rs8
1 files changed, 5 insertions, 3 deletions
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<D: Storage>(db: D, endpoints: IndiewebEndpoints) -> impl Filter<
         })
 }
 
-pub fn onboarding<D: Storage, T: hyper::client::connect::Connect + Clone + Send + Sync + 'static>(
-    db: D, endpoints: IndiewebEndpoints, http: hyper::Client<T, hyper::Body>
+pub fn onboarding<D: Storage>(
+    db: D,
+    endpoints: IndiewebEndpoints,
+    http: reqwest::Client
 ) -> impl Filter<Extract = (impl warp::Reply,), Error = warp::Rejection> + Clone {
     let inject_db = move || db.clone();
     warp::get()
@@ -304,7 +306,7 @@ pub fn onboarding<D: Storage, T: hyper::client::connect::Connect + Clone + Send
             .and(warp::any().map(inject_db))
             .and(warp::body::json::<OnboardingData>())
             .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)? {