summary refs log tree commit diff
path: root/synapse/storage/relations.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/storage/relations.py')
-rw-r--r--synapse/storage/relations.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/storage/relations.py b/synapse/storage/relations.py
index 732418ec65..996cb6903a 100644
--- a/synapse/storage/relations.py
+++ b/synapse/storage/relations.py
@@ -81,6 +81,9 @@ class RelationPaginationToken(object):
     def to_string(self):
         return "%d-%d" % (self.topological, self.stream)
 
+    def as_tuple(self):
+        return attr.astuple(self)
+
 
 @attr.s
 class AggregationPaginationToken(object):
@@ -108,6 +111,9 @@ class AggregationPaginationToken(object):
     def to_string(self):
         return "%d-%d" % (self.count, self.stream)
 
+    def as_tuple(self):
+        return attr.astuple(self)
+
 
 class RelationsWorkerStore(SQLBaseStore):
     @cached(tree=True)