alamin655 commited on
Commit
d639351
·
unverified ·
2 Parent(s): b5d8335 ac89b80

Merge pull request #56 from alamin655/hf-pr

Browse files
Files changed (3) hide show
  1. README.md +1 -1
  2. src/cache/cacher.rs +1 -0
  3. src/config/parser.rs +1 -0
README.md CHANGED
@@ -9,4 +9,4 @@ pinned: false
9
  license: agpl-3.0
10
  ---
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
9
  license: agpl-3.0
10
  ---
11
 
12
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
src/cache/cacher.rs CHANGED
@@ -4,6 +4,7 @@
4
  use error_stack::Report;
5
  #[cfg(feature = "memory-cache")]
6
  use mini_moka::sync::Cache as MokaCache;
 
7
  use mini_moka::sync::ConcurrentCacheExt;
8
 
9
  #[cfg(feature = "memory-cache")]
 
4
  use error_stack::Report;
5
  #[cfg(feature = "memory-cache")]
6
  use mini_moka::sync::Cache as MokaCache;
7
+ #[cfg(feature = "memory-cache")]
8
  use mini_moka::sync::ConcurrentCacheExt;
9
 
10
  #[cfg(feature = "memory-cache")]
src/config/parser.rs CHANGED
@@ -98,6 +98,7 @@ impl Config {
98
 
99
  #[cfg(any(feature = "redis-cache", feature = "memory-cache"))]
100
  let parsed_cet = globals.get::<_, u16>("cache_expiry_time")?;
 
101
  let cache_expiry_time = match parsed_cet {
102
  0..=59 => {
103
  log::error!(
 
98
 
99
  #[cfg(any(feature = "redis-cache", feature = "memory-cache"))]
100
  let parsed_cet = globals.get::<_, u16>("cache_expiry_time")?;
101
+ #[cfg(any(feature = "redis-cache", feature = "memory-cache"))]
102
  let cache_expiry_time = match parsed_cet {
103
  0..=59 => {
104
  log::error!(