mirror of
https://github.com/neon-mmd/websurfx.git
synced 2024-11-24 06:58:22 -05:00
fix: add comma separator and format macro
This commit is contained in:
parent
4f4cb220cc
commit
db1115f19e
@ -138,7 +138,7 @@ async fn results(
|
|||||||
|
|
||||||
// We sort the list of engine so the cache keys will match between users. The cookie's list of engines is unordered.
|
// We sort the list of engine so the cache keys will match between users. The cookie's list of engines is unordered.
|
||||||
engines.sort();
|
engines.sort();
|
||||||
cache_key = cache_key + &(engines.join(""));
|
cache_key = format!("{}{}", cache_key, engines.join(","));
|
||||||
} else {
|
} else {
|
||||||
let mut engines: Vec<String> = config
|
let mut engines: Vec<String> = config
|
||||||
.upstream_search_engines
|
.upstream_search_engines
|
||||||
@ -148,7 +148,7 @@ async fn results(
|
|||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
engines.sort();
|
engines.sort();
|
||||||
cache_key = cache_key + &(engines.join(""));
|
cache_key = format!("{}{}", cache_key, engines.join(","));
|
||||||
}
|
}
|
||||||
|
|
||||||
// fetch the cached results json.
|
// fetch the cached results json.
|
||||||
|
Loading…
Reference in New Issue
Block a user