refactor: split SISMEMBER into two commands

This commit is contained in:
Paul Makles
2023-04-22 10:41:12 +01:00
parent 43e45aef3f
commit 7f86337cb2
3 changed files with 3 additions and 3 deletions

View File

@@ -114,7 +114,7 @@ pub async fn presence_filter_online(user_ids: &'_ [String]) -> HashSet<String> {
// Ok so, if this breaks, that means we've lost the Redis patch which adds SMISMEMBER
// Currently it's patched in through a forked repository, investigate what happen to it
let data: Vec<bool> = conn
.sismember("online", user_ids)
.smismember("online", user_ids)
.await
.expect("this shouldn't happen, please read this code! presence/mod.rs");
if data.is_empty() {