feat: remove random delays when debug is set to true
This commit is contained in:
parent
eb44ff7cfa
commit
13632f1f99
2 changed files with 3 additions and 2 deletions
|
@ -128,7 +128,7 @@ pub async fn search(
|
|||
}
|
||||
Err(_) => {
|
||||
let mut results_json: crate::search_results_handler::aggregation_models::SearchResults =
|
||||
aggregate(query, page, config.aggregator.random_delay).await?;
|
||||
aggregate(query, page, config.aggregator.random_delay, config.debug).await?;
|
||||
results_json.add_style(config.style.clone());
|
||||
redis_cache
|
||||
.cache_results(serde_json::to_string(&results_json)?, &page_url)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue