0
0
mirror of https://github.com/neon-mmd/websurfx.git synced 2024-11-24 15:08:22 -05:00

fix: add comma separator and format macro

This commit is contained in:
ddotthomas 2024-01-01 19:36:18 -07:00
parent 4f4cb220cc
commit db1115f19e

View File

@ -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.