Spaces:
Runtime error
Runtime error
Merge branch 'neon-mmd:rolling' into rolling
Browse files- README.md +1 -1
- src/cache/cacher.rs +1 -0
- src/config/parser.rs +1 -0
README.md
CHANGED
@@ -32,7 +32,7 @@
|
|
32 |
<a href=""
|
33 |
><img
|
34 |
alt="Maintenance"
|
35 |
-
src="https://img.shields.io/maintenance/yes/
|
36 |
/>
|
37 |
</a>
|
38 |
<a href="https://www.codefactor.io/repository/github/neon-mmd/websurfx">
|
|
|
32 |
<a href=""
|
33 |
><img
|
34 |
alt="Maintenance"
|
35 |
+
src="https://img.shields.io/maintenance/yes/2024?style=flat-square"
|
36 |
/>
|
37 |
</a>
|
38 |
<a href="https://www.codefactor.io/repository/github/neon-mmd/websurfx">
|
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!(
|