refactor(pubky): remove unused flume

This commit is contained in:
nazeh
2024-07-28 18:45:24 +03:00
parent d35c586a12
commit 3cfd876808
3 changed files with 1 additions and 10 deletions

View File

@@ -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};

View File

@@ -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

View File

@@ -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),