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

feat: fix spelling mistake in the comment

This commit is contained in:
neon_arch 2023-07-17 10:50:15 +03:00
parent cff7de9d0f
commit c5fca32553

View File

@ -126,7 +126,7 @@ async fn results(
let mut redis_cache = RedisCache::new(config.redis_url.clone())?; let mut redis_cache = RedisCache::new(config.redis_url.clone())?;
// fetch the cached results json. // fetch the cached results json.
let cached_results_json = redis_cache.cached_json(&url); let cached_results_json = redis_cache.cached_json(&url);
// check if fetched catch results was indeed fetched or it was an error and if so // check if fetched cache results was indeed fetched or it was an error and if so
// handle the data accordingly. // handle the data accordingly.
match cached_results_json { match cached_results_json {
Ok(results_json) => Ok(serde_json::from_str::<SearchResults>(&results_json).unwrap()), Ok(results_json) => Ok(serde_json::from_str::<SearchResults>(&results_json).unwrap()),