neon_arch commited on
Commit
c5fca32
1 Parent(s): cff7de9

✨ feat: fix spelling mistake in the comment

Browse files
Files changed (1) hide show
  1. src/server/routes.rs +1 -1
src/server/routes.rs CHANGED
@@ -126,7 +126,7 @@ async fn results(
126
  let mut redis_cache = RedisCache::new(config.redis_url.clone())?;
127
  // fetch the cached results json.
128
  let cached_results_json = redis_cache.cached_json(&url);
129
- // check if fetched catch results was indeed fetched or it was an error and if so
130
  // handle the data accordingly.
131
  match cached_results_json {
132
  Ok(results_json) => Ok(serde_json::from_str::<SearchResults>(&results_json).unwrap()),
 
126
  let mut redis_cache = RedisCache::new(config.redis_url.clone())?;
127
  // fetch the cached results json.
128
  let cached_results_json = redis_cache.cached_json(&url);
129
+ // check if fetched cache results was indeed fetched or it was an error and if so
130
  // handle the data accordingly.
131
  match cached_results_json {
132
  Ok(results_json) => Ok(serde_json::from_str::<SearchResults>(&results_json).unwrap()),