diff --git a/pubky-homeserver/src/server.rs b/pubky-homeserver/src/server.rs index f943203..12d497c 100644 --- a/pubky-homeserver/src/server.rs +++ b/pubky-homeserver/src/server.rs @@ -3,7 +3,6 @@ use std::{ }; use anyhow::{Error, Result}; -use lru::LruCache; use pubky_common::auth::AuthnVerifier; use tokio::{net::TcpListener, signal, sync::Mutex, task::JoinSet}; use tracing::{debug, info, warn}; diff --git a/pubky/Cargo.toml b/pubky/Cargo.toml index 34e1d5c..6f89a23 100644 --- a/pubky/Cargo.toml +++ b/pubky/Cargo.toml @@ -18,12 +18,11 @@ reqwest = { version = "0.12.5", features = ["cookies"] } bytes = "1.6.1" pubky-common = { version = "0.1.0", path = "../pubky-common" } +flume = "0.11.0" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] pkarr = { version="2.1.0", features = ["async"] } -flume = { version = "0.11.0", features = ["select", "eventual-fairness"], default-features = false } - [target.'cfg(target_arch = "wasm32")'.dependencies] pkarr = { version = "2.1.0", default-features = false } @@ -48,9 +47,6 @@ tokio = "1.37.0" wasm-bindgen-test = "0.3.42" [features] -async = ["flume/async"] - -default = ["async"] [package.metadata.docs.rs] all-features = true diff --git a/pubky/src/error.rs b/pubky/src/error.rs index 18be027..e885f32 100644 --- a/pubky/src/error.rs +++ b/pubky/src/error.rs @@ -25,10 +25,6 @@ pub enum Error { #[error(transparent)] Url(#[from] url::ParseError), - #[error(transparent)] - #[cfg(not(target_arch = "wasm32"))] - Flume(#[from] flume::RecvError), - #[error(transparent)] Reqwest(#[from] reqwest::Error),