mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 03:55:59 +00:00
Implement redis clustering (#5189)
Co-authored-by: Jai Agrawal <geometrically@Jais-MacBook-Pro.local>
This commit is contained in:
co-authored by
Jai Agrawal
parent
5c29a8c7dd
commit
fb1050e409
@@ -557,9 +557,10 @@ impl DBNotification {
|
||||
let mut redis = redis.connect().await?;
|
||||
|
||||
redis
|
||||
.delete_many(user_ids.into_iter().map(|id| {
|
||||
(USER_NOTIFICATIONS_NAMESPACE, Some(id.0.to_string()))
|
||||
}))
|
||||
.delete_many(
|
||||
USER_NOTIFICATIONS_NAMESPACE,
|
||||
user_ids.into_iter().map(|id| Some(id.0.to_string())),
|
||||
)
|
||||
.await?;
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user