summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py
index 221cb563d8..a3790419dd 100644
--- a/synapse/storage/events.py
+++ b/synapse/storage/events.py
@@ -2165,7 +2165,7 @@ class EventsStore(SQLBaseStore):
         """
         to_1, so_1 = yield self._get_event_ordering(event_id1)
         to_2, so_2 = yield self._get_event_ordering(event_id2)
-        defer.returnValue(to_1 > to_2 and so_1 > so_2)
+        defer.returnValue((to_1, so_1) > (to_2, so_2))
 
     @defer.inlineCallbacks
     def _get_event_ordering(self, event_id):