S Dheeraj commited on
Commit
8954207
·
unverified ·
1 Parent(s): dc5fa84

Updated redis_cacher.rs

Browse files
Files changed (1) hide show
  1. src/cache/redis_cacher.rs +1 -1
src/cache/redis_cacher.rs CHANGED
@@ -59,7 +59,7 @@ impl RedisCache {
59
  ///
60
  /// * `url` - It takes an url as string.
61
  fn hash_url(&self, url: &str) -> String {
62
- format!("{:?}", compute(url))
63
  }
64
 
65
  /// A function which fetches the cached json results as json string from the redis server.
 
59
  ///
60
  /// * `url` - It takes an url as string.
61
  fn hash_url(&self, url: &str) -> String {
62
+ digest(url)
63
  }
64
 
65
  /// A function which fetches the cached json results as json string from the redis server.