diff options
author | Vika <vika@fireburn.ru> | 2021-05-04 21:08:56 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2021-05-04 21:08:56 +0300 |
commit | b0763ade5d16a68654256b4cbfd029210981970d (patch) | |
tree | fec500975c0e5c3bbf90f62aeba6da72255db2ba /src/database/redis | |
parent | 12a4906117349fa518e4be5550bd8901941abcf0 (diff) | |
download | kittybox-b0763ade5d16a68654256b4cbfd029210981970d.tar.zst |
Fixed Redis tests
Diffstat (limited to 'src/database/redis')
-rw-r--r-- | src/database/redis/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database/redis/mod.rs b/src/database/redis/mod.rs index 2377fac..faf9c13 100644 --- a/src/database/redis/mod.rs +++ b/src/database/redis/mod.rs @@ -263,7 +263,7 @@ impl Storage for RedisStorage { .take(limit); match std::panic::AssertUnwindSafe(posts.collect::<Vec<serde_json::Value>>()).catch_unwind().await { Ok(posts) => feed["children"] = json!(posts), - Err(err) => return Err(StorageError::new(ErrorKind::Other, "Unknown error encountered while assembling feed, see logs for more info")) + Err(_) => return Err(StorageError::new(ErrorKind::Other, "Unknown error encountered while assembling feed, see logs for more info")) } } return Ok(Some(feed)); |