浏览代码

Fix very strange cache bug

This happened once and I have no idea why, but it shouldn't cause a crash.
Zed 6 年之前
父节点
当前提交
548cb62ff2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/redis_cache.nim

+ 1 - 1
src/redis_cache.nim

@@ -115,4 +115,4 @@ proc getCachedRss*(key: string): Future[(string, string)] {.async.} =
     res = await r.hgetall("rss:" & key)
 
   if "rss" in res:
-    result = (res["rss"], res["min"])
+    result = (res["rss"], res.getOrDefault("min"))