Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

models: Fix typo in comment.

Zixuan James Li5901ffb0ab8a
diff --git a/zerver/models.py b/zerver/models.py
index 5197a317ab0..8b2bbf3f875 100644
--- a/zerver/models.py
+++ b/zerver/models.py
@@ -3475,11 +3475,11 @@ class UserMessage(AbstractUserMessage):
the row locks acquired by a bulk update operation to modify
message flags using bitand/bitor.
- This consistent ordering is important to prevent to prevent
- deadlocks when 2 or more bulk updates to the same rows in the
- UserMessage table race against each other (For example, if a
- client submits simultaneous duplicate API requests to mark a
- certain set of messages as read).
+ This consistent ordering is important to prevent deadlocks when
+ 2 or more bulk updates to the same rows in the UserMessage table
+ race against each other (For example, if a client submits
+ simultaneous duplicate API requests to mark a certain set of
+ messages as read).
"""
return UserMessage.objects.select_for_update().order_by("message_id")