Skip to content

Commit

Permalink
Merge pull request #103 from Kuadrant/fixes
Browse files Browse the repository at this point in the history
Clippy
  • Loading branch information
alexsnaps authored Aug 12, 2022
2 parents 16ac8dd + cd8bf36 commit c35040f
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 67 deletions.
120 changes: 60 additions & 60 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions limitador-server/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,28 +83,28 @@ impl Default for Configuration {
}
}

#[derive(PartialEq, Debug)]
#[derive(PartialEq, Eq, Debug)]
pub enum StorageConfiguration {
InMemory,
Redis(RedisStorageConfiguration),
Infinispan(InfinispanStorageConfiguration),
}

#[derive(PartialEq, Debug)]
#[derive(PartialEq, Eq, Debug)]
pub struct RedisStorageConfiguration {
pub url: String,
pub cache: Option<RedisStorageCacheConfiguration>,
}

#[derive(PartialEq, Debug)]
#[derive(PartialEq, Eq, Debug)]
pub struct RedisStorageCacheConfiguration {
pub flushing_period: i64,
pub max_ttl: u64,
pub ttl_ratio: u64,
pub max_counters: usize,
}

#[derive(PartialEq, Debug)]
#[derive(PartialEq, Eq, Debug)]
pub struct InfinispanStorageConfiguration {
pub url: String,
pub cache: Option<String>,
Expand Down
Loading

0 comments on commit c35040f

Please sign in to comment.