Skip to content

Commit

Permalink
Merge pull request #210 from Kuadrant/warns
Browse files Browse the repository at this point in the history
Warns
  • Loading branch information
alexsnaps authored Sep 14, 2023
2 parents 7355c1a + ccff2f8 commit 670664f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[workspace]

members = ["limitador", "limitador-server"]
resolver = "2"

[profile.release]
lto = true
Expand Down
2 changes: 1 addition & 1 deletion limitador/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ edition = "2021"
default = ["disk_storage", "redis_storage"]
disk_storage = ["rocksdb"]
redis_storage = ["redis", "r2d2", "tokio"]
infinispan_storage = ["infinispan", "reqwest", "base64"]
infinispan_storage = ["infinispan", "reqwest", "base64", "tokio"]
lenient_conditions = []

[dependencies]
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions limitador/src/storage/disk/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use crate::storage::StorageErr;

mod expiring_value;
mod rocksdb_storage;

pub use rocksdb_storage::RocksDbStorage as DiskStorage;
Expand Down
2 changes: 1 addition & 1 deletion limitador/src/storage/disk/rocksdb_storage.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::counter::Counter;
use crate::limit::Limit;
use crate::storage::disk::expiring_value::ExpiringValue;
use crate::storage::disk::OptimizeFor;
use crate::storage::expiring_value::ExpiringValue;
use crate::storage::keys::bin::{
key_for_counter, partial_counter_from_counter_key, prefix_for_namespace,
};
Expand Down
6 changes: 5 additions & 1 deletion limitador/src/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ pub mod redis;
pub mod infinispan;

mod atomic_expiring_value;
mod expiring_value;
#[cfg(any(
feature = "disk_storage",
feature = "infinispan_storage",
feature = "redis_storage"
))]
mod keys;

pub enum Authorization {
Expand Down

0 comments on commit 670664f

Please sign in to comment.