Skip to content

Commit

Permalink
drop dp (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
aamalev authored Mar 16, 2024
1 parent 7695021 commit 6172196
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 105 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ pyo3-asyncio = { version = "0.20.0", features = ["tokio-runtime"] }
tokio = "1.32.0"
bb8 = "0.8.1"
bb8-redis = "0.14.0"
deadpool-redis = "0.14.0"
openssl = { version = "0.10.57", optional = true }
serde = "1.0.192"
serde_json = "1.0.108"
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ mod pool_manager;
mod shards;
mod shards_async;
mod single_bb8;
mod single_deadpool;
mod single_node;
mod types;

Expand Down
4 changes: 0 additions & 4 deletions src/pool_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use crate::{
pool::{ClosedPool, Connection, Pool},
shards_async::AsyncShards,
single_bb8::BB8Pool,
single_deadpool::DeadPool,
single_node::Node,
types,
};
Expand Down Expand Up @@ -69,9 +68,6 @@ impl PoolManager {
Some(false) => {
self.pool = match self.features.as_slice() {
[types::Feature::BB8, ..] => Box::new(BB8Pool::new(nodes.remove(0), ms).await?),
[types::Feature::DeadPool, ..] => {
Box::new(DeadPool::new(nodes.remove(0), ms).await?)
}
[types::Feature::Shards, ..] => {
Box::new(AsyncShards::new(nodes, ms, Some(false)).await?)
}
Expand Down
97 changes: 0 additions & 97 deletions src/single_deadpool.rs

This file was deleted.

2 changes: 0 additions & 2 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,6 @@ impl ToRedisArgs for ScalarOrMap {
pub enum Feature {
Shards,
BB8,
DeadPool,
}

impl TryFrom<String> for Feature {
Expand All @@ -332,7 +331,6 @@ impl TryFrom<String> for Feature {
match value.to_ascii_lowercase().as_str() {
"shards" => Ok(Feature::Shards),
"bb8" => Ok(Feature::BB8),
"deadpool" | "dead-pool" | "dead_pool" | "dp" => Ok(Feature::DeadPool),
_ => Err("Unknown".to_string()),
}
}
Expand Down

0 comments on commit 6172196

Please sign in to comment.